[Issue 11727] Repeated error message with using forward referenced enum as variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 12 16:42:47 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11727
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Summary|[ICE] Returning an enum |Repeated error message with
|with no value from a |using forward referenced
|function fails |enum as variable
Severity|critical |normal
--- Comment #3 from yebblies <yebblies at gmail.com> 2013-12-13 11:42:44 EST ---
(In reply to comment #2)
>
> My mistake, I tested this on Dpaste and must not have set it to Git HEAD.
> Still, should this be changed to rejects-valid? It seems to me that n should
> default to type int and value 0.
enum n; isn't an enum variable with no value, it's a forward declaration of an
enum type 'n'. (like "struct s;") Enum variables must always have an
initializer.
The error message obviously could be improved.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list