Skip to content
Snippets Groups Projects
  • Ian Lance Taylor's avatar
    5eb4df45
    c-pch.c (get_ident): Don't set size of templ array. · 5eb4df45
    Ian Lance Taylor authored
    ./:	* 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
    5eb4df45
    History
    c-pch.c (get_ident): Don't set size of templ array.
    Ian Lance Taylor authored
    ./:	* 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