Ticket #1888 (closed merge: fixed)

Opened 6 years ago

Last modified 5 years ago

Slightly confusing error message for duplicate NOINLINE pragmas

Reported by: tim Owned by: igloo
Priority: normal Milestone:
Component: Compiler (Parser) Version: 6.8.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: rnfail048 Blocked By:
Blocking: Related Tickets:

Description

I had some code with two NOINLINE pragmas for the same declaration:

{-# NOINLINE foo #-}
{-# NOINLINE foo #-}

and I got the error message:

UntypedEval.hs:206:0:
    Duplicate NOINLINENEVER pragma:
      UntypedEval.hs:206:0-19: {-# NOINLINENEVER foo #-}
      UntypedEval.hs:202:0-19: {-# NOINLINENEVER foo #-}

Since I wrote NOINLINE, I think the error message should say NOINLINE. It's not a very big deal.

Change History

Changed 6 years ago by simonpj

  • owner set to simonpj

Good point. Easily fixed, and I squished a couple of tiny related bugs too. Patch coming.

Simon

Changed 6 years ago by simonpj

  • owner changed from simonpj to igloo
  • testcase set to rnfail048
  • type changed from bug to merge

Fixed. Might as well merge the patch

Wed Nov 14 10:47:01 GMT 2007  simonpj@microsoft.com
  * FIX Trac 1888; duplicate INLINE pragmas

Changed 6 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Merged

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.