This is the mail archive of the gcc@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]

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


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