Skip to content
Snippets Groups Projects
Commit 556f8de3 authored by Marek Polacek's avatar Marek Polacek Committed by Marek Polacek
Browse files

PR c++/91129 - wrong error with binary op in template argument.

	* typeck.c (warn_for_null_address): Use fold_for_warn instead of
	fold_non_dependent_expr.
	(cp_build_binary_op): Likewise.

	* g++.dg/cpp1y/nontype1.C: New test.

From-SVN: r275285
parent a37ab089
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