1

Closed

escape sequence not lexed correctly for characters

description

This code works with dmd but not dnet:
 
module hw;
 
import System;
 
void main()
{
string s = "hello world\n";
char c = '\n';  //line 8
}
 
C:\d\dnet\projects\hw>dnet -I../../src/phobos/ -I../../src/druntime/import/ hw.d
 
hw.d(8): unterminated character constant
hw.d(8): semicolon expected, not 'n'
hw.d(8): unterminated character constant
hw.d(8): found '59U' when expecting ';' following 'statement'
Closed Jun 18, 2009 at 7:16 AM by cristiv

comments

cristiv wrote May 20, 2009 at 3:22 AM

I reproduced and tracked the bug down to a change that I made to the front-end.

cristiv wrote May 20, 2009 at 3:57 AM

Fix checked in.

wrote Jun 18, 2009 at 7:16 AM

wrote Feb 14, 2013 at 12:52 AM

wrote May 16, 2013 at 5:01 AM