Re: [PATCH 10/13] Fix location for static class members

2012-04-25 Thread Gabriel Dos Reis
On Wed, Apr 25, 2012 at 8:55 AM, Dodji Seketeli wrote: > Consider the test case g++.dg/other/offsetof5.C: > >    #include > >    struct A >    { >      char c; >      int &i; >    }; > >    int j = offsetof (A, i);            // { dg-warning "invalid > access|offsetof" } > >    template >    st

[PATCH 10/13] Fix location for static class members

2012-04-25 Thread Dodji Seketeli
Consider the test case g++.dg/other/offsetof5.C: #include struct A { char c; int &i; }; int j = offsetof (A, i);// { dg-warning "invalid access|offsetof" } template struct S { T h; T &i; static const int j = offsetof (