https://d.puremagic.com/issues/show_bug.cgi?id=11727
yebblies <[email protected]> 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 <[email protected]> 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: -------
