summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash39.C
blob: a7af2881bed78eabcdc3a8d80895eda25b68f23a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }

// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 10 Jan 2001 <nathan@codesourcery.com>

// Bug 595. We failed to clear out some things after seeing a duplicate
// struct definition. That caused us to become inconsistent.

struct X
{
  ~X ();
};
struct S { X a; };  // { dg-error "" } previous defn
struct S { X a; };  // { dg-error "" } redefinition

void c1(S s)
{
}