This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/29862] [4.3 Regression] Calling a function with gcc_assert
- 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: 16 Nov 2006 03:43:10 -0000
- Subject: [Bug middle-end/29862] [4.3 Regression] Calling a function with gcc_assert
- References: <bug-29862-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-16 03:43 -------
(In reply to comment #2)
> Not a bug, see:
> http://gcc.gnu.org/ml/gcc-patches/2006-11/msg01127.html
Wrong:
/* Include EXPR, so that unused variable warnings do not occur. */
#define gcc_assert(EXPR) ((void)(0 && (EXPR)))
&& does a short cut so (EXPR) never gets evaluated. (maybe you are looking at
too much fortran lately).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29862