------- Comment #3 from dgregor at gcc dot gnu dot org  2008-07-07 23:28 -------
The problem here is that fold() is simplifying the expression before we look at
its type. The simplification here turns something that's not a function call (a
conditional expression) into a function call, thereby triggering a different
branch in the decltype code (which returns the return type of a function being
called).


-- 

dgregor at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dgregor at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-07-07 23:28:02
               date|                            |


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

Reply via email to