This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37093] [4.2/4.3/4.4 Regression] ICE with pointer to member template parameters
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2008 05:35:09 -0000
- Subject: [Bug c++/37093] [4.2/4.3/4.4 Regression] ICE with pointer to member template parameters
- References: <bug-37093-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from pinskia at gcc dot gnu dot org 2008-12-30 05:35 -------
That patch removed lots of code that is nessarry for this check, I have to add
back
+ /* The call to perform_qualification_conversions will
+ insert a NOP_EXPR over EXPR to do express conversion,
+ if necessary. But, that will confuse us if we use
+ this (converted) template parameter to instantiate
+ another template; then the thing will not look like a
+ valid template argument. So, just make a new
+ constant, of the appropriate type. */
Anyways now I have a real patch which brings us back to what was done before
and gives us the correct error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37093