This is the mail archive of the gcc-bugs@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]

[Bug c++/28986] Failure to diagnose overflow in constant expression



------- Comment #6 from andrew dot stubbs at st dot com  2007-01-02 14:04 -------
(In reply to comment #5)
> Why is this "accepts-invalid"? Shouldn't it be "diagnostic" instead? I am
> trying to understand what is the expected output here: a warning or a pedantic
> error? 

Clause 5 paragraph 5 says it is "ill-formed". Therefore accepts-invalid sounds
right to me.

In pedantic mode this should definitely be an error in my opinion. What it
should do otherwise is not clear to me. It seems sensible to accept it with
-fpermissive.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28986


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