view gcc/testsuite/g++.old-deja/g++.other/crash32.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { dg-do assemble }
// Origin: Jakub Jelinek <jakub@redhat.com>

struct foo
{
  enum e
  {
    not				// { dg-error "" }
    // We think the next close-brace closes the definition of struct
    // foo, not enum e.  Things go downhill from there
  }; // { dg-bogus "" } 
  ~foo(); // { dg-bogus "" "" { xfail *-*-* } } 
  void x (foo *&a, bool b = (unsigned char)0);
}; // { dg-bogus "" "" { xfail *-*-* } } 

namespace N
{
  struct bar;

  template<class T>
  struct baz
  {
    baz(T *p);
  };

  typedef baz<bar> c;
}

{ // { dg-error "expected" }
  int a;
};