On Fri, 7 Jan 2005 20:36:12 +0000 (UTC),
rouben@pc18.math.umbc.edu
(Rouben Rostamian) wrote:
[...][color=blue]
>When I compile this with gcc, it emits the message:
>
> warning: useless keyword or type name in empty declaration
>
>Therefore gcc does not like a static enum.
>
>So I have the following questions:
>
>1. Is an enumeration type, as described above, amenable
> to external linkage?
>2. If yes, then how does one hide a file-scope enum within
> its translation unit?
>3. If no, where in the standard is this behavior specified?[/color]
Since an enum is a pure structural declaration, it has usually no
memory location, because it doesn't need any memory. It is primarily
used for code clarity and increment-definition - the compiler cares
about that, but usually emits no memory for this.
So any storage type modifiers are ignored: No memory location, no
storage class.
--
,,,
_ _ \(((.
__,,../v\,----../ `-..=.>"" _\,_
_______;/____<_ \_______\ \___////______;______pukys@pukys.de_______
,"/ `.) `.) ```
/," /7__ /7_
(( ' \\\ )))
)
/