This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15771] std::assert(true) doesn't compile, assert(true) does (but shouldn't).
- 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: 2 Jun 2004 11:35:07 -0000
- Subject: [Bug c++/15771] std::assert(true) doesn't compile, assert(true) does (but shouldn't).
- References: <20040602101607.15771.thorstein@thorsteinsson.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-02 11:35 -------
Invalid as cassert is defined to have macros and therefor will expand without an namesapce:
19.2 Assertions
Provides macros for documenting C++program assertions, and for disabling the assertion checks.
2 Header<cassert>(Table 25):
Table 25?Header<cassert> synopsis
_ ____________________
Type Name(s)_
____________________
Macro: assert_
____________________
3 The contents are the same as the Standard C library header<assert.h>.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15771