re PR c++/48003 (Regression in Template Constants from 4.5.2)
authorJason Merrill <jason@redhat.com>
Tue, 8 Mar 2011 05:28:13 +0000 (00:28 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 8 Mar 2011 05:28:13 +0000 (00:28 -0500)
commit93dd46fb792863cd5d7893867d93e7f0ea69322c
treeeed58ea0402d2c32facb43dbede2512affbfe906
parent8152661be6564d7369d88e32dded29641183b248
re PR c++/48003 (Regression in Template Constants from 4.5.2)

PR c++/48003
* pt.c (convert_nontype_argument): Fix -fpermissive allowing
integer overflow.
* semantics.c (potential_constant_expression_1): Check TREE_OVERFLOW.

From-SVN: r170771
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/member1.C
gcc/testsuite/g++.dg/parse/constant4.C
gcc/testsuite/g++.dg/template/nontype20.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/qualified-id3.C
gcc/testsuite/g++.old-deja/g++.pt/crash10.C
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc