[Issue 9182] Forward reference error with static immutable struct members

2013-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9182


yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com
   Platform|x86 |All
Summary|[ICE](glue.c line 1235) |Forward reference error
   |With static struct fields   |with static immutable
   ||struct members
 OS/Version|Windows |All


--- Comment #1 from yebblies  2013-01-14 21:35:29 EST ---
With 2.062 head it doesn't ice.

Now prints:

testx.d(3): Error: forward reference of variable F

or

testx.d(4): Error: variable testx.Foo.foos3 had semantic errors when compiling

If you move the lines around.  I suspect this is a dupe of one of the other
forward reference bugs.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 9182] Forward reference error with static immutable struct members

2013-02-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9182


Andrej Mitrovic  changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #2 from Andrej Mitrovic  2013-02-09 
21:55:30 PST ---
(In reply to comment #1)
> With 2.062 head it doesn't ice.

Current 2.062 head (b58ef83b22e4e4375e83aeb3f9e1ba18774f0688):

Without -g:
test.d(4): Error: variable test.Foo.foos3 had semantic errors when compiling

With -g crash and:
ty = 35, '_error_'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---