This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72756] Using an enum as a constant expression via dot operator should not compile.
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jul 2016 22:25:37 +0000
- Subject: [Bug c++/72756] Using an enum as a constant expression via dot operator should not compile.
- Auto-submitted: auto-generated
- References: <bug-72756-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72756
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I suspect it is rejected at instantation time rather than definition time.