This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/33305] We should warn about empty macro arguments
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2007 09:29:37 -0000
- Subject: [Bug preprocessor/33305] We should warn about empty macro arguments
- References: <bug-33305-578@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-09-05 09:29 -------
Subject: Re: We should warn about empty macro arguments
On 5 Sep 2007 09:24:09 -0000, manu at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
> There was talking about creating a -Wundefined flag that warns about undefined
> behaviour (PR30334). Would this fit in there? (-pedantic is not supposed to
> warn about undefined constructions as far as I know).
There are two different undefined behaviors, one at runtime and one at
compile time. This belongs to the latter which means we can
diagnostic this if we want (and can do it with -pedantic in fact).
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33305