After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 611150 - Usage of certain names for generics break build or runtime
Usage of certain names for generics break build or runtime
Status: RESOLVED DUPLICATE of bug 790239
Product: vala
Classification: Core
Component: Genie
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: Jamie McCracken
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-02-26 05:35 UTC by Felix Wolfsteller
Modified: 2018-02-19 09:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sample code to trigger misbehaviour with bad names "for" generics. (793 bytes, application/octet-stream)
2010-02-26 05:35 UTC, Felix Wolfsteller
Details

Description Felix Wolfsteller 2010-02-26 05:35:52 UTC
Created attachment 154732 [details]
Sample code to trigger misbehaviour with bad names "for" generics.

In Genie, for

class Thing of object : Object

I get an compiler error that is not clear in what the underlying problem is.


If I use

class InsaneThing of _object_ : Object

I get an error at runtim:
GLib-GObject-CRITICAL **: g_param_spec_internal: assertion `(name[0] >= 'A' && name[0] <= 'Z') || (name[0] >= 'a' && name[0] <= 'z')' failed
Segmentation fault.*/


I imagine that valac should either emit a proper warning here.
Sample code is attached.
Comment 1 Rico Tzschichholz 2018-02-19 09:56:24 UTC

*** This bug has been marked as a duplicate of bug 790239 ***