]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/51313 ([C++0x] ICE: tree check: expected class 'constant', have 'unary...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 4 Dec 2011 01:40:36 +0000 (01:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 4 Dec 2011 01:40:36 +0000 (01:40 +0000)
commit5a6bdb0d87ef2876ff38795dfcf9edd1c796af29
tree929367c326e2fc7938b66f3a6e764d6b4965f9df
parent9c3a724411cee39a7bca5b159fcd43d1f93d44db
re PR c++/51313 ([C++0x] ICE: tree check: expected class 'constant', have 'unary' (nop_expr) in null_ptr_cst_p, at cp/call.c:556)

/cp
2011-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51313
* call.c (null_ptr_cst_p): STRIP_NOPS in c++11 mode too.

/testsuite
2011-12-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51313
* g++.dg/cpp0x/pr51313.C: New.

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