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++/59760] use_thunk internal error on default destructor declarations


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

--- Comment #3 from sshannin at gmail dot com ---
Created attachment 31821
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31821&action=edit
Preprocessed source

Preprocessed source of compilation from example in previous link.

Source (no includes):
template <class> struct A {
    virtual ~A();
};
template <class... Ts> struct B : A<Ts>... {
    ~B() = default;
};
struct C : B<int, char> {
    C() {}
};

int main( int , char **)
{
    C c;
}

Compiled with:
g++-4.8.2 -std=c++0x -O0 -g3 -Wall -c -o sample.o sample.cpp


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