summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash59.C
blob: 37a2fc53118ffecc4d41299349566754428eecfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { 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());
}