[Bug c++/52949] decltype too sensitive to order of declarations?

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 12 16:12:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52949

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-12 16:12:15 UTC ---
this is no different to;

struct Vector
{
  static const int i = sizeof(member_);   // error
  int member_;
  static const int j = sizeof(member_);   // ok
};



More information about the Gcc-bugs mailing list