зеркало из https://github.com/mono/mail-archives.git
210 строки
4.9 KiB
HTML
210 строки
4.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 557748] New: Parsing error with 'fixed' statement
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20557748%5D%20New%3A%20Parsing%20error%20with%20%27fixed%27%20statement&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="095135.html">
|
|
<LINK REL="Next" HREF="095139.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 557748] New: Parsing error with 'fixed' statement</H1>
|
|
<B>bugzilla_noreply at novell.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20557748%5D%20New%3A%20Parsing%20error%20with%20%27fixed%27%20statement&In-Reply-To="
|
|
TITLE="[Mono-bugs] [Bug 557748] New: Parsing error with 'fixed' statement">bugzilla_noreply at novell.com
|
|
</A><BR>
|
|
<I>Mon Nov 23 09:03:53 EST 2009</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="095135.html">[Mono-bugs] [Bug 467834] mono_method_get_vtable_slot assertion when compiling Nemerle
|
|
</A></li>
|
|
<LI>Next message: <A HREF="095139.html">[Mono-bugs] [Bug 557748] Parsing error with 'fixed' statement
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#95138">[ date ]</a>
|
|
<a href="thread.html#95138">[ thread ]</a>
|
|
<a href="subject.html#95138">[ subject ]</a>
|
|
<a href="author.html#95138">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE><A HREF="http://bugzilla.novell.com/show_bug.cgi?id=557748">http://bugzilla.novell.com/show_bug.cgi?id=557748</A>
|
|
|
|
<A HREF="http://bugzilla.novell.com/show_bug.cgi?id=557748#c0">http://bugzilla.novell.com/show_bug.cgi?id=557748#c0</A>
|
|
|
|
|
|
Summary: Parsing error with 'fixed' statement
|
|
Classification: Mono
|
|
Product: Mono: Compilers
|
|
Version: 2.4.x
|
|
Platform: Other
|
|
OS/Version: Ubuntu
|
|
Status: NEW
|
|
Severity: Normal
|
|
Priority: P5 - None
|
|
Component: C#
|
|
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">abels at bluewin.ch</A>
|
|
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
|
|
Found By: Development
|
|
Blocker: No
|
|
|
|
|
|
It's not possible to specify the following 'fixed' statement format :
|
|
|
|
fixed (fixed-pointer-declarators , fixed-pointer-declarator) {}
|
|
|
|
|
|
The following little program show the problem:
|
|
|
|
using System;
|
|
|
|
namespace TestFixed
|
|
{
|
|
class MainClass
|
|
{
|
|
static long l1;
|
|
static long l2;
|
|
|
|
public unsafe static void Main(string[] args)
|
|
{
|
|
// First manner : Ok
|
|
fixed (long* pl1 = &l1) {
|
|
fixed (long* pl2 = &l2) {
|
|
}
|
|
}
|
|
|
|
// Second manner : Parsing error
|
|
fixed (long* pl1 = &l1, long* pl2 = &l2) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
The compilation line is :
|
|
|
|
/usr/bin/gmcs "/out:/home/abeguin/Projects/TestFixed/bin/Release/TestFixed.exe"
|
|
"/r:System.dll" /noconfig /nologo /warn:4 /optimize- /codepage:utf8 -unsafe
|
|
/t:exe "/home/abeguin/Projects/TestFixed/Main.cs"
|
|
"/home/abeguin/Projects/TestFixed/AssemblyInfo.cs"
|
|
Compilation failed: 2 error(s), 0 warnings
|
|
|
|
/home/abeguin/Projects/TestFixed/Main.cs(17,52): error CS1525: Unexpected
|
|
symbol `long', expecting `identifier'
|
|
/home/abeguin/Projects/TestFixed/Main.cs(22,1): error CS8025: Parsing error
|
|
|
|
|
|
Best regards.
|
|
|
|
--
|
|
Configure bugmail: <A HREF="http://bugzilla.novell.com/userprefs.cgi?tab=email">http://bugzilla.novell.com/userprefs.cgi?tab=email</A>
|
|
------- You are receiving this mail because: -------
|
|
You are the QA contact for the bug.
|
|
You are the assignee for the bug.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="095135.html">[Mono-bugs] [Bug 467834] mono_method_get_vtable_slot assertion when compiling Nemerle
|
|
</A></li>
|
|
<LI>Next message: <A HREF="095139.html">[Mono-bugs] [Bug 557748] Parsing error with 'fixed' statement
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#95138">[ date ]</a>
|
|
<a href="thread.html#95138">[ thread ]</a>
|
|
<a href="subject.html#95138">[ subject ]</a>
|
|
<a href="author.html#95138">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|