[Mono-bugs] [Bug 835953] New: vbnc error on ReDim inside If...End If

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Aug 21 17:43:20 UTC 2013


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

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


           Summary: vbnc error on ReDim inside If...End If
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.10.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dis at mail.rotf.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/28.0.1500.95 Safari/537.36

The code:

193  If strarrayvars(varname).GetUpperBound(0) < getVar(index, line + 1) Then
194                                ReDim Preserve strarrayvars(varname)(0 To
getVar(index, line + 1))
195                            End If













C:\Users\Karol>C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe
C:\dl\Demo\
t.dll
Kompilator Microsoft (R) Visual Basic w wersji 11.0.50709.17929
Copyright (C) Microsoft Corporation. Wszelkie prawa zastrzeżone.

C:\dl\Demo\t.dll(735) : warning BC42105: Function ip doesn't return value at
all the code paths

    End Function
    ~~~~~~~~~~~~


#compiled successfully

C:\Users\Karol>"C:\Program Files\Mono-2.10.9\bin\vbnc" C:\dl\Demo\t.dll
Visual Basic.Net Compiler version 0.0.0.5943
Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved.

C:\dl\Demo\t.dll (194,74) : Error VBNC30205: Expected end of statement.
C:\dl\Demo\t.dll (194,74) : Error VBNC90019: Expected 'End'.
C:\dl\Demo\t.dll (194,74) : Error VBNC90019: Expected 'End'.
C:\dl\Demo\t.dll (194,74) : Error VBNC90019: Expected 'End'.
C:\dl\Demo\t.dll (194,74) : Error VBNC90019: Expected 'End'.
C:\dl\Demo\t.dll (194,74) : Error VBNC90019: Expected 'End'.
C:\dl\Demo\t.dll (194,74): Compiler error around this location, the compiler
has
n't implemented the error message, nor error recovery, so the compiler will
prob
ably crash soon.
   at vbnc.Helper.ErrorRecoveryNotImplemented(Span Location)
   at vbnc.Parser.ParseTryStatement(vbnc.ParsedObject Parent, Boolean
IsOneLiner
)
   at vbnc.Parser.ParseCodeBlock(vbnc.ParsedObject Parent, Boolean IsOneLiner)
   at vbnc.Parser.ParseFunctionDeclaration(vbnc.TypeDeclaration Parent,
vbnc.Par
seAttributableInfo Info)
   at vbnc.Parser.ParseTypeMembers(vbnc.TypeDeclaration Parent)
   at vbnc.Parser.ParseModuleDeclaration(vbnc.ParsedObject Parent,
vbnc.Attribut
es Attributes, System.String Namespace)
   at vbnc.Parser.ParseTypeDeclaration(vbnc.ParsedObject Parent,
vbnc.Attributes
 Attributes, System.String Namespace)
   at vbnc.Parser.ParseAssemblyMembers(vbnc.AssemblyDeclaration Parent,
System.S
tring RootNamespace)
   at vbnc.Parser.ParseAssemblyDeclaration(System.String RootNamespace,
vbnc.Ass
emblyDeclaration assembly)
   at vbnc.Parser.Parse(System.String RootNamespace, vbnc.AssemblyDeclaration
as
sembly)
   at vbnc.Compiler.Compile_Parse()
   at vbnc.Compiler.Compile()
   at vbnc.Compiler.Compile(System.String[] CommandLine)
   at vbnc.Main.Main(System.String[] CmdArgs)
C:\dl\Demo\t.dll (194,74) : Error VBNC90019: Expected 'End'.
C:\dl\Demo\t.dll (194,74): Compiler error around this location, the compiler
has
n't implemented the error message, nor error recovery, so the compiler will
prob
ably crash soon.
   at vbnc.Helper.ErrorRecoveryNotImplemented(Span Location)
   at vbnc.Parser.ParseFunctionDeclaration(vbnc.TypeDeclaration Parent,
vbnc.Par
seAttributableInfo Info)
   at vbnc.Parser.ParseTypeMembers(vbnc.TypeDeclaration Parent)
   at vbnc.Parser.ParseModuleDeclaration(vbnc.ParsedObject Parent,
vbnc.Attribut
es Attributes, System.String Namespace)
   at vbnc.Parser.ParseTypeDeclaration(vbnc.ParsedObject Parent,
vbnc.Attributes
 Attributes, System.String Namespace)
   at vbnc.Parser.ParseAssemblyMembers(vbnc.AssemblyDeclaration Parent,
System.S
tring RootNamespace)
   at vbnc.Parser.ParseAssemblyDeclaration(System.String RootNamespace,
vbnc.Ass
emblyDeclaration assembly)
   at vbnc.Parser.Parse(System.String RootNamespace, vbnc.AssemblyDeclaration
as
sembly)
   at vbnc.Compiler.Compile_Parse()
   at vbnc.Compiler.Compile()
   at vbnc.Compiler.Compile(System.String[] CommandLine)
   at vbnc.Main.Main(System.String[] CmdArgs)
C:\dl\Demo\t.dll (194,74) : Error VBNC30205: Expected end of statement.
C:\dl\Demo\t.dll (194,74): Compiler error around this location, the compiler
has
n't implemented the error message, nor error recovery, so the compiler will
prob
ably crash soon.
   at vbnc.Helper.ErrorRecoveryNotImplemented(Span Location)
   at vbnc.Parser.ParseFunctionDeclaration(vbnc.TypeDeclaration Parent,
vbnc.Par
seAttributableInfo Info)
   at vbnc.Parser.ParseTypeMembers(vbnc.TypeDeclaration Parent)
   at vbnc.Parser.ParseModuleDeclaration(vbnc.ParsedObject Parent,
vbnc.Attribut
es Attributes, System.String Namespace)
   at vbnc.Parser.ParseTypeDeclaration(vbnc.ParsedObject Parent,
vbnc.Attributes
 Attributes, System.String Namespace)
   at vbnc.Parser.ParseAssemblyMembers(vbnc.AssemblyDeclaration Parent,
System.S
tring RootNamespace)
   at vbnc.Parser.ParseAssemblyDeclaration(System.String RootNamespace,
vbnc.Ass
emblyDeclaration assembly)
   at vbnc.Parser.Parse(System.String RootNamespace, vbnc.AssemblyDeclaration
as
sembly)
   at vbnc.Compiler.Compile_Parse()
   at vbnc.Compiler.Compile()
   at vbnc.Compiler.Compile(System.String[] CommandLine)
   at vbnc.Main.Main(System.String[] CmdArgs)
C:\dl\Demo\t.dll (194,74) : Error VBNC90019: Expected 'End'.
C:\dl\Demo\t.dll (194,74): Compiler error around this location, the compiler
has
n't implemented the error message, nor error recovery, so the compiler will
prob
ably crash soon.
   at vbnc.Helper.ErrorRecoveryNotImplemented(Span Location)
   at vbnc.Parser.ParseModuleDeclaration(vbnc.ParsedObject Parent,
vbnc.Attribut
es Attributes, System.String Namespace)
   at vbnc.Parser.ParseTypeDeclaration(vbnc.ParsedObject Parent,
vbnc.Attributes
 Attributes, System.String Namespace)
   at vbnc.Parser.ParseAssemblyMembers(vbnc.AssemblyDeclaration Parent,
System.S
tring RootNamespace)
   at vbnc.Parser.ParseAssemblyDeclaration(System.String RootNamespace,
vbnc.Ass
emblyDeclaration assembly)
   at vbnc.Parser.Parse(System.String RootNamespace, vbnc.AssemblyDeclaration
as
sembly)
   at vbnc.Compiler.Compile_Parse()
   at vbnc.Compiler.Compile()
   at vbnc.Compiler.Compile(System.String[] CommandLine)
   at vbnc.Main.Main(System.String[] CmdArgs)
C:\dl\Demo\t.dll (194,74) : Error VBNC30205: Expected end of statement.
C:\dl\Demo\t.dll (194,74): Compiler error around this location, the compiler
has
n't implemented the error message, nor error recovery, so the compiler will
prob
ably crash soon.
   at vbnc.Helper.ErrorRecoveryNotImplemented(Span Location)
   at vbnc.Parser.ParseModuleDeclaration(vbnc.ParsedObject Parent,
vbnc.Attribut
es Attributes, System.String Namespace)
   at vbnc.Parser.ParseTypeDeclaration(vbnc.ParsedObject Parent,
vbnc.Attributes
 Attributes, System.String Namespace)
   at vbnc.Parser.ParseAssemblyMembers(vbnc.AssemblyDeclaration Parent,
System.S
tring RootNamespace)
   at vbnc.Parser.ParseAssemblyDeclaration(System.String RootNamespace,
vbnc.Ass
emblyDeclaration assembly)
   at vbnc.Parser.Parse(System.String RootNamespace, vbnc.AssemblyDeclaration
as
sembly)
   at vbnc.Compiler.Compile_Parse()
   at vbnc.Compiler.Compile()
   at vbnc.Compiler.Compile(System.String[] CommandLine)
   at vbnc.Main.Main(System.String[] CmdArgs)
C:\dl\Demo\t.dll (194,74) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (195,35) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (196,41) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (198,31) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (199,27) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (203,32) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (204,32) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (205,31) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (206,38) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (207,35) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (208,41) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (210,31) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (211,27) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (215,31) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (216,38) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (217,35) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (218,42) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (220,31) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (222,27) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (224,35) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (228,27) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (230,36) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (235,27) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (237,33) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (241,25) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (242,33) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (243,27) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (244,23) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (245,24) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (246,25) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (247,26) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (249,28) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (250,28) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (251,28) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (252,27) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (253,32) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (254,29) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (256,31) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (258,29) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (259,30) : Error VBNC30203: Not valid as identifier.
C:\dl\Demo\t.dll (262,28) : Error VBNC30203: Not valid as identifier.
Error : VBNC30041: Too many errors.

C:\Users\Karol>

Reproducible: Always

Steps to Reproduce:
Try to compile a code containing ReDim function
Actual Results:  
Compiler error

Expected Results:  
Compilation successful(vbc compiles it with no error)

-- 
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