------- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-27 20:31 -------
else if (!saw_named_field)
{
error ("%Jflexible array member in otherwise empty struct", x);
TREE_TYPE (x) = error_mark_node;
}
Hmm, it explicitly looks for a named field.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
GCC build triplet|i486-pc-linux-gnu |
GCC host triplet|i486-pc-linux-gnu |
GCC target triplet|i486-pc-linux-gnu |
Keywords| |rejects-valid
Known to fail| |4.0.1 3.3.3 4.1.1 4.3.0
| |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36839