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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [crash59.C] - Rev 699

Compare with Previous | Blame | View Log

// { dg-do assemble  }
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 4 Oct 2000 <nathan@codesourcery.com>
// Origin: Bug 543 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>

// Bug 532. We failed to bail out when tsubsting a _DECL failed

class ATOMSET
{
};

template <class T>
void addConstsTo(const T &container)
{
typename T::const_iterator l = 0; // { dg-error "" } no type const_iterator
}

void tallyConstants()
{
addConstsTo(ATOMSET());
}

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.