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++/51833] ICE in tsubst_copy, at cp/pt.c:11333


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

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-12 20:43:04 UTC ---
Further reduced

struct function
{
  template<typename T>
    function(T) { }
};

class Foo {
public:
  template<typename>
    void dostuff(function callback = []() { }) { }
};

int main() {
  Foo foo;
  foo.dostuff<int>();
}


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