------- Comment #4 from kargl at gcc dot gnu dot org 2006-06-05 17:40 ------- (In reply to comment #3) > I marked it as ice-on-valid-code, but I'm not sure it's valid code. g95 emits > an error, but Intel and Sun compilers don't. Uttam, do you know if that code > is > valid? >
It is invalid-code. 5.2.10 DATA statement R532 data-stmt is DATA data-stmt-set [ [ , ] data-stmt-set ] ... This statement is used to specify explicit initialization (504). A variable, or part of a variable, shall not be explicitly initialized more than once in a program. If a nonpointer object or subobject has been specified with default initialization in a type definition, it shall not appear in a data-stmt-object-list. I've changed this to ice-on-invalid-code -- kargl at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu dot org Keywords|ice-on-valid-code |ice-on-invalid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24978