[Bug c++/21165] [4.0/4.1 Regression] bogus error on a user-defined conversion in a template

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Apr 23 04:19:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-23 04:18 -------
Confirmed, it ICEs with checking enabled:
t.cc: In member function 'typename T::BA C< <template-parameter-1-1>, T>::foo(typename T::BA)':
t.cc:23: internal compiler error: tree check: expected record_type or union_type or qual_union_type, 
have typename_type in lookup_conversions, at cp/search.c:2407
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-checking, ice-on-valid-
                   |                            |code, rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-23 04:18:57
               date|                            |
            Summary|bogus error on a user-      |[4.0/4.1 Regression] bogus
                   |defined conversion in a     |error on a user-defined
                   |template                    |conversion in a template
   Target Milestone|---                         |4.0.1


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



More information about the Gcc-bugs mailing list