[Bug c++/15771] std::assert(true) doesn't compile, assert(true) does (but shouldn't).
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jun 2 11:35:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list