This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36628] [c++0x] incorrect decltype() handling of conditional operator
- From: "abarbati at iaanus dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2008 11:39:05 -0000
- Subject: [Bug c++/36628] [c++0x] incorrect decltype() handling of conditional operator
- References: <bug-36628-16380@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from abarbati at iaanus dot com 2008-06-26 11:39 -------
After a more careful reading of 5/5, 5.16/4 and 7.1.6.2/4, I believe that gcc
is correctly handling the int& case, that is the expected output should be:
FivE
FRivE
FivE
Only the int&& case is thus incorrect, according to my interpretation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36628