Skip to content
Snippets Groups Projects
Commit 6addabbb authored by Jie Zhang's avatar Jie Zhang Committed by Jie Zhang
Browse files

re PR c++/42556 (Unnecessary generation of a zero initializer for array with C++)

	cp/
	PR c++/42556
	* typeck2.c (split_nonconstant_init_1): Drop empty CONSTRUCTOR
	when all of its elements are non-constant and have been split out.

	testsuite/
	PR c++/42556
	* g++.dg/init/pr42556.C: New test.

From-SVN: r158047
parent 366f945f
No related branches found
No related tags found
No related merge requests found
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