This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48780] [C++0x] scoped enumerations and va_arg (default argument promotions)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48780

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-07 15:12:18 UTC ---
Author: jason
Date: Tue Jun  7 15:12:15 2011
New Revision: 174753

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174753
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:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum19.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/call.c
    branches/gcc-4_6-branch/gcc/cp/typeck.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]