This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
patch that caused regression PR c++/7964
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc at gnu dot org, mark at codesourcery dot com
- Cc: rodrigc at attbi dot com, bangerth at ticam dot utexas dot edu
- Date: Tue, 17 Dec 2002 11:28:49 -0800
- Subject: patch that caused regression PR c++/7964
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