This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37540] [4.4 regression] ICE on __decltype of method call in function template
- From: "dgregor at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2008 13:51:38 -0000
- Subject: [Bug c++/37540] [4.4 regression] ICE on __decltype of method call in function template
- References: <bug-37540-15692@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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