aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/arm3.C
blob: 3c888bafd7b79fad0d9ebb7fba4d013f704d0b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Build don't link: 
// GROUPS passed ARM-compliance
// arm file
// Message-Id: <199301260139.AA13555@world.std.com>
// From: gparker@world.std.com (Glenn P Parker)
// Subject: gcc bug
// Date: Mon, 25 Jan 1993 20:39:19 -0500

class X {
        enum S { blue, pink };
        int S;
public:
        void f (enum S arg) ;
};

void X::f (enum S arg)
{
        S = arg;        // g++ gives error on this line.
}