This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: DWARF2 vs. qualified array types
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: RFC: DWARF2 vs. qualified array types
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Thu, 12 Apr 2001 08:25:53 +0100
- CC: gcc at gcc dot gnu dot org, Jim Wilson <wilson at cygnus dot com>, Jason Merrill <jason at cygnus dot com>
- Organization: Codesourcery LLC
- References: <20010411125726Z.mitchell@codesourcery.com>
Mark Mitchell wrote:
>
> PR1657 is one of those bugs that shouldn't exist: turning on -ggdb
> causes the C++ front-end to emit an error message where it doesn't
> otherwise.
FWIW, I started looking at this yesterday and attach a reduced test case
for you. Shall I stick it in the testsuite?
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
template <class _Type> _Type violation(_Type __a);
template <class _Type>
struct concept {
static void requirement (_Type __a) {
violation(__a);
}
};
template <class _Value>
struct _Rb_tree_iterator
{
typedef _Rb_tree_iterator<_Value> iterator;
_Rb_tree_iterator(const iterator& __it);
};
template <class _Tp >
struct map {
typedef void (*fptr)(_Tp);
template <fptr> struct dummy { };
static dummy<concept<_Tp>::requirement> dummy_ptr;
typedef typename _Rb_tree_iterator<_Tp>::iterator iterator;
};
struct X
{
const int x1[4];
};
struct Y
{
map<int>::iterator y1;
int y2[4];
};
void f()
{
map<Y> m;
}