anonymous types
Mark M. Young
youngmm@hera.wku.edu
Thu May 4 06:35:00 GMT 2000
Hopefully I won't get thrashed like I did the last time...
Why does GNU C/C++ allow my "anonymous struct" to be declared, but not
passed as a parameter? This error is from the attached file when I try to
use the 'struct' defined in the '#else' section after the '#ifdef
__GNUC__' section. The section that is not allowed is practical identical
to the section allowed except that the struct is given a name. What does
that matter? I don't see why it should complain.
non-local function `datatype func(const {anonymous struct} (&)[2][3])'
uses anonymous type
When I ask people these questions, they always spout off the
standard--where the crap do I find it?
Mark M. Young
youngmm@hera.wku.edu
note: A friend of mine's name is Shannon Johnson. That is why the example
code is laced with those two words.
"Do those sticks on the board mean bitwise or, absolute value,
matrix determinant, UNI* I/O redirection, the letter 'l',
the letter 'I', the number '1', or stray marks?"
--anonymous computer science student in response to "sticks" on a chalkboard
36 24 36...
More information about the Gcc-bugs
mailing list