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

eb47, eb53, eb89


These three test cases all build standard templates from reference types,
which is illegal.

Unfortunately, they all give errors for lines in library headers,
which I can't test for.

Therefore, I suggest to remove all of them, and replace it with
the test include below.

Martin

template<class T>
struct A {
  typedef T* iterator;
public:
  A(){}
};

void f()
{
  A<int&> a;  // ERROR - pointer to reference
}



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