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: Tue, 7 Jun 2011 15:09:52 +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 #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-07 15:09:34 UTC ---
Author: jason
Date: Tue Jun 7 15:09:29 2011
New Revision: 174751
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174751
Log:
PR c++/48780
* typeck.c (perform_integral_promotions): Don't promote scoped enums.
* call.c (convert_arg_to_ellipsis): Promote them here in old ABI.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/enum19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cvt.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog