digitalmars.D.bugs - [Issue 6107] New: ICE when a non-template member named '__ctor' exists in a struct, and the constructor is attempted to be invoked.
- d-bugmail puremagic.com (32/32) Jun 05 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6107
- d-bugmail puremagic.com (11/11) Jan 20 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6107
- d-bugmail puremagic.com (16/17) Jan 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6107
- d-bugmail puremagic.com (10/10) Oct 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6107
- d-bugmail puremagic.com (12/12) Oct 08 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6107
- d-bugmail puremagic.com (9/9) Oct 08 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6107
http://d.puremagic.com/issues/show_bug.cgi?id=6107
Summary: ICE when a non-template member named '__ctor' exists
in a struct, and the constructor is attempted to be
invoked.
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Keywords: ice-on-invalid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: kennytm gmail.com
Test case:
----------------------------------
struct Foo {
enum __ctor = 4; // can also be a function, struct, alias, but template is
ok.
}
void main() {
auto f = Foo("irrelevant"); // can also use 'new Foo(...)'
}
----------------------------------
Assertion failed: (td), function semantic, file expression.c, line 7040.
Abort trap
----------------------------------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 05 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6107
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla digitalmars.com
Severity|normal |trivial
22:38:15 PST ---
Names beginning with a double underscore are reserved for the compiler's use.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 20 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6107
Andrej Mitrovic <andrej.mitrovich gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich gmail.com
07:14:02 PST ---
Names beginning with a double underscore are reserved for the compiler's use.
Should we implement some kind of identifier checks in the front-end? We could
gather all double-underscore symbols the compiler uses and just compare them
when instantiating Identifier from user-code.
Unless the compiler also generates these symbols with random names, in such a
case we would have to ban all double-underscores identifiers in user-code
because they might potentially clash.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 10 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6107
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Platform|Other |All
12:15:20 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2631
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 05 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6107 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/69d30ad53f5b136e4e79d552e69650d1a3f576b7 fix Issue 6107 - ICE(expression.c) when a non-template member named '__ctor' exists in a struct, and the constructor is attempted to be invoked. https://github.com/D-Programming-Language/dmd/commit/003af73463b8126e30613b6c125ce87c45b294c6 fix Issue 6107 - ICE(expression.c) when a non-template member named '__c... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 08 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6107
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 08 2013









d-bugmail puremagic.com 