Don <> changed:

           What    |Removed                     |Added
                 CC|                            |
            Summary|Static variable without     |Segfault(D1 only, mangle.c)
                   |explicit type causes        |alias corrupts type
                   |compiler to crash           |inference of static
                   |                            |variables
           Severity|normal                      |critical

--- Comment #4 from Don <>  2009-05-26 11:35:06 PDT ---
The test case is a bit misleading. It requires an alias to the type which is
being inferred. With the original test case, it was provided by alias char[]
string; in std.object.

Here's a complete test case. Remove the alias, and it will be fine.
alias int * any_old_alias;
const bar = foo;
int * foo = null;

The alias creates a corrupt type (it doesn't have the 'deco' member set), and
this gets picked by 'bar' instead of the type of foo.

The behaviour is quite similar to 2672. Marking as critical, because subtle
changes in ordering in different modules can control whether the segfault

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to