[Mono-bugs] [Bug 439447] '\\u' in literal string in preprocessor directive not recognized

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 3 02:26:15 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=439447

User jonathan.l.anderson at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=439447#c2


Jonathan Anderson <jonathan.l.anderson at gmail.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |jonathan.l.anderson at gmail.com




--- Comment #2 from Jonathan Anderson <jonathan.l.anderson at gmail.com>  2008-11-03 00:26:14 MDT ---
I've seen this issue as well.  According to the ECMA-334 section 9.5.6, a
#region directive uses the pp-message production.  Section 9.5.5 states "Note
that a pp-message can contain arbitrary text; specifically, it need not contain
well-formed tokens"

The problem is that the compiler tries to parse the argument to the #region
directive as an argument to the #if directive.  I've got a fix for this, and
I'll be adding the proposed patch shortly.

Here is a complete test program that will successfully compile once this is
fixed:

------------------------
#region "\Uxxxx"
namespace Test {
        class Test {
                static void Main () {}
        }
}
#endregion
------------------------


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list