patch that caused regression PR c++/7964
Janis Johnson
janis187@us.ibm.com
Tue Dec 17 11:44:00 GMT 2002
The regression reported in PR c++/7964 showed up starting with this
patch:
2002-08-02 Mark Mitchell <mark@codesourcery.com>
* init.c (build_member_call): Use build_new_method_call, not
build_method_call.
Here's a small test case that causes the valid code to be rejected.
This occurs in the mainline and the 3.3 branch.
---------------
struct A
{
virtual void foo() const;
};
struct B : virtual A {};
template<typename T> struct C : B
{
void bar() const { B::foo(); }
};
template struct C<int>;
---------------
Output from the compiler:
7964.C: In member function `void C<T>::bar() const [with T = int]':
7964.C:13: instantiated from here
7964.C:10: internal compiler error: in build_base_path, at cp/class.c:284
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions
I'll add this information to the PR.
Janis
More information about the Gcc
mailing list