This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41541] Conditional operator takes address of constant operands
- 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 Oct 2009 02:46:53 -0000
- Subject: [Bug c++/41541] Conditional operator takes address of constant operands
- References: <bug-41541-18259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-10-02 02:46 -------
DR 696 is talking about a different case.
The issue here is that you use Test::A / Test::B and define them. You use them
in a non constant expression location so the compiler does not have to
subsitute them at all.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41541