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++/16293] __attribute__(([non-]const)): optimization bug?


------- Additional Comments From giovannibajo at libero dot it  2004-06-30 10:27 -------
How can it be?

Tests such as:
        if (0 && bar_const()) 
            val++; 
        if (0 && bar_nonconst()) 
            val++; 

are short-circuited, so bar_const() and bar_nonconst() never get called.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16293


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