Skip to content
Snippets Groups Projects
Commit e99f332f authored by Giovanni Bajo's avatar Giovanni Bajo
Browse files

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
parent 6cb70db4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment