re PR c++/54207 ([C++0x] ICE in build_noexcept_spec when bool is #defined/typedef'd)
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Dec 2012 18:55:48 +0000 (19:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Dec 2012 18:55:48 +0000 (19:55 +0100)
commit84fd832c033bea574a835ca680e7b84d2027798d
tree198119626a140a928ea4247c14efb8b91ce927a4
parent947f720f7d7ca03f642e8682a97cb667bd343569
re PR c++/54207 ([C++0x] ICE in build_noexcept_spec when bool is #defined/typedef'd)

PR c++/54207
* except.c (build_noexcept_spec): Avoid direct comparison
with boolean_true_node or boolean_false_node, instead use
operand_equal_p and/or INTEGER_CST check.
* pt.c (tsubst_exception_specification): Likewise.
* typeck2.c (merge_exception_specifiers): Likewise.

* g++.dg/cpp0x/noexcept18.C: New test.

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