https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37213

Alexandre Oliva <aoliva at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aoliva at gcc dot gnu.org

--- Comment #6 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Conversely, in the following testcase, we treat as an expression a statement
that, per [stmt.ambig], should be syntactically disambiguated as a declaration:

// { dg-do compile }
struct foo {
  static int i;
};
void bar() {
  int (foo::i); // { dg-error "ill-formed declaration" }
}

Reply via email to