re PR c++/48780 ([C++0x] scoped enumerations and va_arg (default argument promotions))
authorJason Merrill <jason@redhat.com>
Tue, 7 Jun 2011 15:09:29 +0000 (11:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 7 Jun 2011 15:09:29 +0000 (11:09 -0400)
commit3c395ecf7d41384016acbcc18d4847c72685013c
tree7b362ff7ad48bea5b1140d97d5790865a4121aeb
parentc074d7402137a7aecd560091686f56add84c1353
re PR c++/48780 ([C++0x] scoped enumerations and va_arg (default argument promotions))

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.

From-SVN: r174751
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cvt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum19.C [new file with mode: 0644]