view gcc/testsuite/g++.old-deja/g++.jason/scoping8.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
line wrap: on
line source

// { dg-do assemble  }
// Bug: g++ allows two different meanings of a name in the same scope.

typedef int foo;		// { dg-error "" } 
struct A {
  A (foo);
  int foo ();			// { dg-error "" } foo already used in scope
};