This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: DWARF2 vs. qualified array types


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;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]