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++/48003] [4.6 Regression] Regression in Template Constants from 4.5.2


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

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-08 05:28:16 UTC ---
Author: jason
Date: Tue Mar  8 05:28:13 2011
New Revision: 170771

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170771
Log:
    PR c++/48003
    * pt.c (convert_nontype_argument): Fix -fpermissive allowing
    integer overflow.
    * semantics.c (potential_constant_expression_1): Check TREE_OVERFLOW.

Added:
    trunk/gcc/testsuite/g++.dg/template/nontype20.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/init/member1.C
    trunk/gcc/testsuite/g++.dg/parse/constant4.C
    trunk/gcc/testsuite/g++.dg/template/qualified-id3.C
    trunk/gcc/testsuite/g++.old-deja/g++.pt/crash10.C
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc


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