This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix up vla, vm and [*] semantics for C
On Mon, 15 May 2006, Mike Stump wrote:
+ if (pedantic && decl_context == FIELD
+ && variably_modified_type_p (type, NULL_TREE))
+ {
+ /* C99 6.7.2.1p8 */
+ error ("a member of a structure or union cannot have a variably modified type");
+ }
-pedantic should never cause an error; it should only cause pedwarns
(which -pedantic-errors will make into errors) and, in some cases,
warnings.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)