From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17227 invoked by alias); 7 Jul 2008 23:28:45 -0000 Received: (qmail 17058 invoked by uid 48); 7 Jul 2008 23:28:02 -0000 Date: Mon, 07 Jul 2008 23:28:00 -0000 Message-ID: <20080707232802.17057.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/36628] [c++0x] incorrect decltype() handling of conditional operator In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dgregor at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00856.txt.bz2 ------- 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