This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21592] [3.4/4.0/4.1 Regression] ICE in resolve_overloaded_unification


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-15 20:57 -------
Confirmed, reduced testcase:
class cl
{
  int str();
  void str(const int& __s);
};

template <typename T>
int &f(const T& t);

template<int s>
void g()
{
  cl str;
  f(str.str);
}


-------

I don't know if this is valid code or not, 3.3.3 accepted it and so does ICC even in strict mode.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.4.0 4.0.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-15 20:57:07
               date|                            |
            Summary|ICE                         |[3.4/4.0/4.1 Regression] ICE
                   |                            |in
                   |                            |resolve_overloaded_unificati
                   |                            |on
   Target Milestone|---                         |3.4.4


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]