This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Use new style initializers in headers


Could any of the code you are modifying be built for C++ with GCC versions 
before 4.7?  Support for C99 designated initializer syntax is much more 
recent for C++

2011-07-20  Jason Merrill  <jason@redhat.com>

        * parser.c (cp_parser_initializer_list): Handle C99 .id= and [N]=
        designated initializer syntax.
        * decl.c (check_array_designated_initializer): Add index parm.
        (maybe_deduce_size_from_array_init): Pass it.
        (reshape_init_array_1): Likewise.

than for C where it was added in GCC 2.5 in 1993.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]