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++/29105] [4.2 Regression] segfault in add_candidates



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-09-17 09:08 -------
Reduced testcase:
struct Observer
{
  template < typename T > void observeComponent ();
};
template < typename T >
 struct TagFilter : Observer
{
  TagFilter ()
  {
    observeComponent < int > ();
  }
};

------
This also can ICE on invalid code if we change struct to class for Observer


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2006-09-17 09:08:30
               date|                            |


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


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