This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: V3 PATCH: Insert `typename' and `ios_base::' where required


Mark Mitchell <mark@codesourcery.com> writes:

| >>>>> "Gabriel" == Gabriel Dos Reis <gdr@codesourcery.com> writes:
| 
|     Gabriel> Is there a reason why GCC's extension for variable-length
|     Gabriel> array of fondamental types can't be supported here?
| 
| It would be -- except that when the library is compiled with -pedantic
| it's not.  

That should not happen -- anything included by a system header should
be noted as a system header, and unless -Wsystem-header is specified
there should be no diagnostic for extension constructs in such a header.
If that happens, the compiler we should fix the compiler.

| Can we just add `#pragma GCC system_header' to ostream.tcc?  Should
| that go in all the .tcc files?

That might be a short-term solution, but there ought to be a way to
convince the compiler not to diagnose extension constructs in system
headers. 

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


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