------- Comment #2 from sambitdash at gmail dot com 2006-06-05 06:22 ------- I am not sure if this code is invalid.
It's no different from saying: struct B { struct A; }; A is just a forward declaration here. In the following code is not invalid but the statement ::A is innocuous and for ::A to be defined struct A must have been defined in the global scope. ========================== struct A; struct B { struct ::A; }; ========================== Hence, I will suggest this be marked as not a bug. -- sambitdash at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sambitdash at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18101