This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15771] std::assert(true) doesn't compile, assert(true) does (but shouldn't).


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]