[Bug c++/54207] [4.7/4.8 Regression][C++0x] ICE in build_noexcept_spec when bool is #defined/typedef'd

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 6 18:56:00 GMT 2012


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-12-06 18:55:52 UTC ---
Author: jakub
Date: Thu Dec  6 18:55:48 2012
New Revision: 194263

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194263
Log:
    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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/noexcept18.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/except.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list