Opened 16 years ago

Closed 16 years ago

Last modified 48 years ago

#522 closed bug (Duplicate)

String gap failure not due to cpp

Reported by: morabbin Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Have you tried StringGapBug2.hs that I sent in?  With 
my setup (vanilla 4.08.2) it fails even without -cpp.
The command line I use is:

    ghc-4.08.2 -c StringGapBug2.hs

and I get the following error:

    StringGapBug2.hs:27: error in character literal

I've had a quick look at Lex.lexstringgap and there 
doesn't seem to be any problem there (I had thought 
that the second \ may have been kept in the lexeme 
when starting to lex the string again, but that 
doesn't seem to be the case).

I've attached StringGapBug2.hs again.

Attachments (1)

StringGapBug2.2.hs (688 bytes) - added by morabbin 16 years ago.

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by morabbin

Attachment: StringGapBug2.2.hs added

comment:1 Changed 16 years ago by simonmar

Logged In: YES 
user_id=48280

Yup, I tried it, and got the same error, on the line that 
begins '\\h', which really *is* an error, because '\h' is 
an invalid escape sequence.  If you delete that line and 
the previous one, the test compiles fine.  

Can I close this bug?

comment:2 Changed 16 years ago by simonmar

Logged In: YES 
user_id=48280

Yup, I tried it, and got the same error, on the line that 
begins '\\h', which really *is* an error, because '\h' is 
an invalid escape sequence.  If you delete that line and 
the previous one, the test compiles fine.  

Can I close this bug?

comment:3 Changed 16 years ago by simonmar

Logged In: YES 
user_id=48280

Yup, I tried it, and got the same error, on the line that 
begins '\\h', which really *is* an error, because '\h' is 
an invalid escape sequence.  If you delete that line and 
the previous one, the test compiles fine.  

Can I close this bug?

comment:4 Changed 16 years ago by simonmar

Status: assignedclosed
Note: See TracTickets for help on using tickets.