diff options
author | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2004-11-22 12:15:53 +0000 |
---|---|---|
committer | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2004-11-22 12:15:53 +0000 |
commit | e99f332f05fbe3e18d628a91cb363dc67047e19f (patch) | |
tree | 09703038def87536054944b70def832562af54cd /gcc/bt-load.c | |
parent | 6cb70db4d9333ea241e1076147ec8f3516ea7982 (diff) | |
download | gcc-e99f332f05fbe3e18d628a91cb363dc67047e19f.zip gcc-e99f332f05fbe3e18d628a91cb363dc67047e19f.tar.gz gcc-e99f332f05fbe3e18d628a91cb363dc67047e19f.tar.bz2 |
re PR c++/18354 (expression "+1" not considered constant (as template parameter).)
PR c++/18354
* typeck.c (build_unary_op) <CONVERT_EXPR, NEGATE_EXPR>: Unify code.
Make sure the result is always a rvalue.
PR c++/18354
* g++.dg/template/nontype11.C: New test.
From-SVN: r91008
Diffstat (limited to 'gcc/bt-load.c')
0 files changed, 0 insertions, 0 deletions