[Mono-bugs] [Bug 359731] [LINQ] Evil LINQ test case
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Jan 31 06:39:22 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=359731
User Yury at serdyuk.botik.ru added comment
https://bugzilla.novell.com/show_bug.cgi?id=359731#c3
Yury Serdyuk <Yury at serdyuk.botik.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |Yury at serdyuk.botik.ru
Resolution|FIXED |
--- Comment #3 from Yury Serdyuk <Yury at serdyuk.botik.ru> 2009-01-31 04:39:16 MST ---
A slight modification of original LINQ-query (see the attached code) leads to
the parser error (in contrast with the right output of Micosoft csc-compiler).
Namely,
1) mono-2.0
$ mono -V
Mono JIT compiler version 2.0 (tarball)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
$ gmcs -v LINQ_Mono_Test.cs
LINQ_Mono_Test.cs(95,27): error CS1002: Expecting `;'
System.InvalidCastException: Cannot cast from source type to destination type.
at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
at Mono.CSharp.CSharpParser.parse () [0x00000]
Compilation failed: 1 error(s), 0 warnings
2) mono-2.2
$ mono -V
Mono JIT compiler version 2.2 (tarball Sat Jan 31 12:24:40 MSK 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
$ gmcs -v LINQ_Mono_Test.cs
LINQ_Mono_Test.cs(95,29): error CS1525: Unexpected symbol `let'
System.InvalidCastException: Cannot cast from source type to destination type.
at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
at Mono.CSharp.CSharpParser.parse () [0x00000]
LINQ_Mono_Test.cs(114,9): error CS8032: Internal compiler error during parsing,
Run with -v for details
Compilation failed: 2 error(s), 0 warnings
3) mono-2.4 RC1
$ mono -V
Mono JIT compiler version 2.4 (tarball Sat Jan 31 12:39:10 MSK 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
$ gmcs -v LINQ_Mono_Test.cs
LINQ_Mono_Test.cs(95,29): error CS1525: Unexpected symbol `let'
LINQ_Mono_Test.cs(162,34): error CS0136: A local variable named `pos' cannot be
declared in this scope because it would give a different meaning to `pos',
which is already used in a `parent or current' scope to denote something else
LINQ_Mono_Test.cs(165,39): error CS0136: A local variable named `pos' cannot be
declared in this scope because it would give a different meaning to `pos',
which is already used in a `parent or current' scope to denote something else
LINQ_Mono_Test.cs(166,34): error CS0136: A local variable named `pos' cannot be
declared in this scope because it would give a different meaning to `pos',
which is already used in a `parent or current' scope to denote something else
LINQ_Mono_Test.cs(176,38): error CS0136: A local variable named `pos' cannot be
declared in this scope because it would give a different meaning to `pos',
which is already used in a `parent or current' scope to denote something else
LINQ_Mono_Test.cs(177,39): error CS0136: A local variable named `pos' cannot be
declared in this scope because it would give a different meaning to `pos',
which is already used in a `parent or current' scope to denote something else
LINQ_Mono_Test.cs(178,35): error CS0136: A local variable named `pos' cannot be
declared in this scope because it would give a different meaning to `pos',
which is already used in a `parent or current' scope to denote something else
System.InvalidCastException: Cannot cast from source type to destination type.
at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
at Mono.CSharp.CSharpParser.parse () [0x00000]
LINQ_Mono_Test.cs(189,76): error CS8032: Internal compiler error during
parsing, Run with -v for details
Compilation failed: 8 error(s), 0 warnings
4) Microsoft csc
>csc LINQ_Mono_Test.cs
Microsoft (R) Visual C# 2008 Compiler version 3.5.21022.8
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
LINQ_Mono_Test.cs(62,45): error CS0103: The name 'traceRayArgs' does not exist
in the current context
LINQ_Mono_Test.cs(63,54): error CS0103: The name 'traceRayArgs' does not exist
in the current context
LINQ_Mono_Test.cs(71,45): error CS0103: The name 'traceRayArgs' does not exist
in the current context
LINQ_Mono_Test.cs(76,66): error CS0103: The name 'traceRayArgs' does not exist
in the current context
LINQ_Mono_Test.cs(95,46): error CS0103: The name 'traceRayArgs' does not exist
in the current context
LINQ_Mono_Test.cs(98,61): error CS0103: The name 'f' does not exist in the
current context
LINQ_Mono_Test.cs(103,80): error CS0103: The name 'traceRayArgs' does not exist
in the current context
LINQ_Mono_Test.cs(104,80): error CS0103: The name 'traceRayArgs' does not exist
in the current context
--
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