[Mono-bugs] [Bug 674365] New: in string literal, not only U+0027 APOSTROPHE but also U+201C and U+201D is allowed as the production DoubleQuoteCharacter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 23 11:53:32 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=674365#c0


           Summary: in string literal, not only U+0027 APOSTROPHE but also
                    U+201C and U+201D is allowed as the production
                    DoubleQuoteCharacter
    Classification: Mono
           Product: Mono: Compilers
           Version: 1.2.0
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: rkvinge at novell.com
        ReportedBy: himajin100000 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0b12pre) Gecko/20110222
Firefox/4.0b12pre Firefox/4.0b12pre

see steps to reproduce

Reproducible: Always

Steps to Reproduce:
STEP 1: Have a look at annoying VB.NET specification and be surprised to know
that not only U+0027 APOSTROPHE but also U+201C LEFT DOUBLE QUOTATION MARK and
U+201D RIGHT DOUBLE QUOTATION MARK is included in DoubleQuoteCharacter

2.4.4 String Literals
http://msdn.microsoft.com/en-us/library/aa711651%28v=VS.71%29.aspx

STEP 2: 
see 
http://ideone.com/GHlpR 
http://ideone.com/p1TJ8
http://ideone.com/vs9dH
Actual Results:  
GHlpR failed the compilation. 

p1TJ8 and vs9dH seems to be compiled successfully with mono-2.4.2.3,but if you
compile p1TJ8 and vs9dH with vbnc in Mono 2.10, you get following compilation
error

C:\Environment\System\Mono\v2.10\lib\mono\4.0\abc.vb (3,46) : Error VBNC90003:
E
nd of line found in string constant.
C:\Environment\System\Mono\v2.10\lib\mono\4.0\abc.vb (3,46) : Error VBNC90003:
E
nd of line found in string constant.
C:\Environment\System\Mono\v2.10\lib\mono\4.0\abc.vb (4,1) : Error VBNC90019:
Ex
pected ')'.
C:\Environment\System\Mono\v2.10\lib\mono\4.0\abc.vb (4,1): Compiler error
aroun
d this location, the compiler hasn't implemented the error message, nor error
re
covery, so the compiler will probably crash soon.
   場所 vbnc.Helper.ErrorRecoveryNotImplemented(Span Location)
   場所 vbnc.Parser.ParseInvocationOrIndexExpression(ParsedObject Parent, Expres
sion First)
   場所 vbnc.Parser.ParseIdentifier(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseExponent(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseUnaryPlusMinus(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseMultDiv(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseIntDiv(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseMod(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParsePlusMinus(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseConcat(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseBitshift(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseComparison(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseNot(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseAnd_AndAlso(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseOr_OrElse_Xor(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseExpression(ExpressionParseInfo Info)
   場所 vbnc.Parser.ParseCodeBlock(ParsedObject Parent, Boolean IsOneLiner)
   場所 vbnc.Parser.ParseSubDeclaration(TypeDeclaration Parent, ParseAttributabl
eInfo Info)
   場所 vbnc.Parser.ParseTypeMembers(TypeDeclaration Parent)
   場所 vbnc.Parser.ParseClassDeclaration(ParsedObject Parent, Attributes Attrib
utes, String Namespace)
   場所 vbnc.Parser.ParseTypeDeclaration(ParsedObject Parent, Attributes Attribu
tes, String Namespace)
   場所 vbnc.Parser.ParseAssemblyMembers(AssemblyDeclaration Parent, String Root
Namespace)
   場所 vbnc.Parser.ParseAssemblyDeclaration(String RootNamespace, AssemblyDecla
ration assembly)
   場所 vbnc.Parser.Parse(String RootNamespace, AssemblyDeclaration assembly)
   場所 vbnc.Compiler.Compile_Parse()
   場所 vbnc.Compiler.Compile()
   場所 vbnc.Compiler.Compile(String[] CommandLine)
   場所 vbnc.Main.Main(String[] CmdArgs)

Expected Results:  
GHlpR should be compiled successfully .
p1TJ8 should fail the compilation. 
vs9dH should be compiled successfully.

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


More information about the mono-bugs mailing list