This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28986] Failure to diagnose overflow in constant expression
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jan 2007 23:33:10 -0000
- Subject: [Bug c++/28986] Failure to diagnose overflow in constant expression
- References: <bug-28986-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from gdr at integrable-solutions dot net 2007-01-02 23:33 -------
Subject: Re: Failure to diagnose overflow in constant expression
"andrew dot stubbs at st dot com" <gcc-bugzilla@gcc.gnu.org> writes:
| ------- 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 C++, "ill-formed" implies "diagnostic is required" unless
explicitly noted otherwise.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28986