Commit d90dc4fc by Paolo Carlini Committed by Paolo Carlini

re PR c++/31027 (Compiler segfaults in simple virtual inheritance situation)

2007-07-11  Paolo Carlini  <pcarlini@suse.de>

	PR c++/31027
	* g++.dg/inherit/virtual4.C: New.

From-SVN: r126558
parent 29d27fb0
2007-07-11 Paolo Carlini <pcarlini@suse.de>
PR c++/31027
* g++.dg/inherit/virtual4.C: New.
2007-07-11 Uros Bizjak <ubizjak@gmail.com> 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
PR target/32661 PR target/32661
// PR c++/31027
struct A {};
template<typename T>
struct C: virtual A {
C() {}
template<typename T_OTHER> C(const C<T_OTHER>&) {}
C func(const class C<long>&) const;
operator bool() const;
};
template<typename T>
struct D: C<T> {
void func2() {
C<int>a;
a.func(a);
}
};
void func3() {
C<int>a;
a.func(a);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment