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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [crash-3.C] - Rev 315

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do compile }
// { dg-options "-g" }
// Contributed by: <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
//   and Niall Douglas <s_gccbugzilla at nedprod dot com>
// PR c++/14246: ice in write_template_arg_literal while mangling boolean
//   expressions.

namespace N1 {

  template <typename T>
  struct A {
      enum { Yes = (sizeof(T) == 1) };
  };

  template<bool T>
  struct B {
      void foo(void);
  };

  template struct B< !A<int>::Yes >;

}


namespace N2 {

  template<bool> struct A {};
  A<!false> a;

}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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