This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48780] [C++0x] scoped enumerations and va_arg (default argument promotions)
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 May 2011 01:00:40 +0000
- Subject: [Bug c++/48780] [C++0x] scoped enumerations and va_arg (default argument promotions)
- Auto-submitted: auto-generated
- References: <bug-48780-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48780
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-22 00:28:47 UTC ---
Author: jason
Date: Sun May 22 00:28:44 2011
New Revision: 174022
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174022
Log:
PR c++/48780
* cvt.c (type_promotes_to): Warn about promoting scoped enums.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum13.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/cvt.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog