Hi LDC crew.

I think I may have found a problem with semantic error detection in version
.943 of LDC.

I constructed a D class with a property which included an initializer.  I
forgot to include the 'static' keyword in the property, so of course it
defaulted to automatic.  Of course you can't statically initialize automatic
variables, but the compiler happily consumed the initialization code and
ignored it.  It took me a little while to figure out what was going on.

Should that kind of construction be flagged with an error message like:
"Error: Static initialization of automatic storage in line NNNN" ?

Thanks,

Jim Burnes
Fort Collins, CO

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "LDC 
- the LLVM D compiler" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ldc-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to