This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14644] enum of value zero not converted to (null) pointer
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2006 23:01:12 -0000
- Subject: [Bug c++/14644] enum of value zero not converted to (null) pointer
- References: <bug-14644-5283@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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