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++/20549] [3.4/4.0/4.1 Regression] ICE on invalid code, typename outside of a template


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-19 13:30 -------
Reduced testcase:
template<typename t1, typename t2>
  t1 unique(t1 v1, t1 v2, t2 v3){}
struct row
{
  int begin() const ;
  int end() const;
};
template<int s>
void popSlot()
{
  row ops;
  unique(ops.begin, ops.end);
}


This is invalid code.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-19 13:30:30
               date|                            |
            Summary|ICE                         |[3.4/4.0/4.1 Regression] ICE
                   |                            |on invalid code, typename
                   |                            |outside of a template
   Target Milestone|---                         |3.4.4


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


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