1 // { dg-do assemble  }
2 
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Nov 2000 <nathan@codesourcery.com>
5 
6 // Bug 853: We reported the wrong line no for a friend access violation
7 
8 class F
9 {
10   class Internal;   // { dg-error "" } is private
11 };
12 
13 class C
14 {
15   friend class F::Internal; // { dg-error "" } in this context
16   public:
17   typedef enum { A, B } e;
18 
19   C ();
20   ~C();
21 
22   void m();
23 };
24