OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error10.C] - Diff between revs 301 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// PR c++/3478
// PR c++/3478
// { dg-options "-fshow-column" }
// { dg-options "-fshow-column" }
template  struct A
template  struct A
{
{
    enum E {};
    enum E {};
};
};
template  void foo()
template  void foo()
{
{
  enum          A::E e1;
  enum          A::E e1;
  typename      A::E    e2;
  typename      A::E    e2;
  enum          A::E    e3;
  enum          A::E    e3;
  enum typename A::E    e4;
  enum typename A::E    e4;
}
}
// Here, columns nums are not very accurate either. Still acceptable though
// Here, columns nums are not very accurate either. Still acceptable though
// { dg-error "30:invalid type in declaration before ';' token" "" { target *-*-* } 14 }
// { dg-error "30:invalid type in declaration before ';' token" "" { target *-*-* } 14 }
// { dg-error "30:two or more data types in declaration of 'e4'" "" { target *-*-* } 14 }
// { dg-error "30:two or more data types in declaration of 'e4'" "" { target *-*-* } 14 }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.