This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: variadic templates supported in non-c++0x mode


2009/3/10 Sylvain Pion:
> Manuel López-Ibáñez wrote:
>> 2009/3/10 Sylvain Pion:
>>>
>>> Yes, but like any extension, it's nice to be able to disable them
>>> as errors, so as to be able to use GCC for checking code portability.
>>
>> So use -pedantic-errors as it says in the manual. You should really
>> use -pedantic-erros if you do not want extensions.
>
> Sure. ?It just forces you to have additional compiler-specific flags
> in your configuration system.

I don't think that's unreasonable if you want to use GCC for checking
portability. The primary use case is as the GNU compiler, not a
portability checker. If you're arguing for GCC to disable all
extensions by default that's another topic, and a contentious one :-)

Jonathan


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