This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH]: DR 209 is not a defect
Jason Merrill wrote:
>
> OK. Testcase?
attached diff to existing tests.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2002-03-11 Nathan Sidwell <nathan@codesourcery.com>
* testsuite/g++.old-deja/g++.other/friend9.C: Revert DR 209 changes.
* testsuite/g++.old-deja/g++.robertl/eb56.C: Likewise.
Index: testsuite/g++.old-deja/g++.other/friend9.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.other/friend9.C,v
retrieving revision 1.2
diff -c -3 -p -r1.2 friend9.C
*** friend9.C 2001/03/26 08:37:27 1.2
--- friend9.C 2002/03/11 20:45:04
***************
*** 5,20 ****
// Bug 853: We reported the wrong line no for a friend access violation
- // Since DR 209, friend declaration access is not checked.
-
class F
{
! class Internal;
};
class C
{
! friend class F::Internal;
public:
typedef enum { A, B } e;
--- 5,18 ----
// Bug 853: We reported the wrong line no for a friend access violation
class F
{
! class Internal; // ERROR - is private
};
class C
{
! friend class F::Internal; // ERROR - in this context
public:
typedef enum { A, B } e;
Index: testsuite/g++.old-deja/g++.robertl/eb56.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb56.C,v
retrieving revision 1.4
diff -c -3 -p -r1.4 eb56.C
*** eb56.C 2001/03/26 08:37:27 1.4
--- eb56.C 2002/03/11 20:45:08
***************
*** 3,9 ****
class foo {
public:
! typedef int sometype;
};
struct die : public foo::sometype { // ERROR - invalid base type
--- 3,9 ----
class foo {
public:
! typedef int sometype;
};
struct die : public foo::sometype { // ERROR - invalid base type