re PR c++/78765 (ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error...
authorNathan Sidwell <nathan@acm.org>
Thu, 5 Jan 2017 12:30:26 +0000 (12:30 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 5 Jan 2017 12:30:26 +0000 (12:30 +0000)
commitdc7650cc6d9e0db68a45b261cfa65a982588924c
tree6f79e8f482910ed5b6303db5a6f516400c628eb3
parent3db705650b723f5777940e9ff9485de90e1b81f9
re PR c++/78765 (ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_build_addr_expr_1, at cp/typeck.c:5708))

cp/
PR c++/78765
* pt.c (convert_nontype_argument): Don't try and see if integral
or enum expressions are constants prematurely.

testsuite/
PR c++/78765
* g++.dg/cpp0x/pr78765.C: New.

From-SVN: r244101
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr78765.C [new file with mode: 0644]