Skip to content
Snippets Groups Projects
Commit 5eb4df45 authored by Ian Lance Taylor's avatar Ian Lance Taylor Committed by Ian Lance Taylor
Browse files

c-pch.c (get_ident): Don't set size of templ array.

./:	* c-pch.c (get_ident): Don't set size of templ array.
	(pch_init): Don't set size of partial_pch array.

	* c-typeck.c (digest_init): If -Wc++-compat, warn about using a
	string constant to intialize an array whose size is the length of
	the string.
testsuite/:
	* gcc.dg/Wcxx-compat-14.c: New testcase.

From-SVN: r148611
parent 6958c780
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