This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14644] enum of value zero not converted to (null) pointer



------- Comment #3 from schwab at suse dot de  2006-03-28 23:01 -------
But [expr.const] also says:

An integral constant-expression can involve only literals (2.13), enumerators,
...

Thus enumerators are also integral constant expressions.  The distinction
between integral and enumeration is only at the type level, not as an
expression.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14644


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]