[Bug c++/84333] [6/7/8 Regression] ICE with ternary operator in template function
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 13 21:29:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84333
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Feb 13 21:23:22 2018
New Revision: 257638
URL: https://gcc.gnu.org/viewcvs?rev=257638&root=gcc&view=rev
Log:
/cp
2018-02-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84333
* call.c (build_conditional_expr_1): Use cp_save_expr instead of
save_expr for the G++ extension.
/testsuite
2018-02-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/84333
* g++.dg/template/sizeof16.C: New.
* g++.dg/template/sizeof17.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/template/sizeof16.C
trunk/gcc/testsuite/g++.dg/template/sizeof17.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list