re PR c++/84333 (ICE with ternary operator in template function)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 13 Feb 2018 21:23:22 +0000 (21:23 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 13 Feb 2018 21:23:22 +0000 (21:23 +0000)
commit3a9ad4c190409ee4a9d20ad4f4d1349302e90da7
tree0885f4bb59ba743ef65131f2501c9b4cd248417a
parenta2f5a78214edc4716e6f97b97fb7839a211e8ff7
re PR c++/84333 (ICE with ternary operator in template function)

/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.

From-SVN: r257638
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/sizeof16.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/sizeof17.C [new file with mode: 0644]