------- Comment #4 from dgregor at gcc dot gnu dot org 2008-09-24 13:51 ------- We need to look at CALL_EXPR_FN's type because the decltype of a call retrieves the return type of the the function called, which may be a REFERENCE_TYPE. The type of the expression will have stripped away that reference.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37540