[Bug 379196] New: block<> typechecking looks at the wrong block

https://bugzilla.novell.com/show_bug.cgi?id=379196 Summary: block<> typechecking looks at the wrong block Product: openSUSE 11.0 Version: Alpha 3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: mvidner@novell.com ReportedBy: mvidner@novell.com QAContact: jsrain@novell.com CC: aschnell@novell.com Found By: --- The attached script fails to compile, with: [Parser] snippets/funcref-arvin.ycp:4 Mismatched return type in block [Parser] snippets/funcref-arvin.ycp:4 Expected 'boolean', seen 'const symbol'. It seems as if the compiler looks at the wrong block to determine the expected return type. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=379196 User mvidner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=379196#c1 --- Comment #1 from Martin Vidner <mvidner@novell.com> 2008-04-11 09:57:10 MST --- Created an attachment (id=207547) --> (https://bugzilla.novell.com/attachment.cgi?id=207547) funcref-arvin.ycp -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=379196 User mvidner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=379196#c2 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Martin Vidner <mvidner@novell.com> 2008-04-15 04:17:29 MST --- The bug is somewhere around handling declared_return_type in parser.yy, in particular in the '{' part of the 'block' rule where it doesn't consider that a block can be assigned to a variable typed block<different-type>. Anyway, there is a workaround: use the quoted block variant: block<...> = ``{ ... } instead of block<...> = { ... } Wonderful, isn't it? :-/ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=379196 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com