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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot 
gnu.org

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Simple patch:
```
[apinski@xeond2 gcc]$ git diff
diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc
index 53fbb75b15a..1beba71f653 100644
--- a/gcc/cp/parser.cc
+++ b/gcc/cp/parser.cc
@@ -29769,6 +29769,10 @@ cp_parser_class_specifier (cp_parser* parser)
       case CPP_SCOPE:
         want_semicolon = false;
         break;
+      case CPP_AND_AND:
+       if (cxx_dialect >= cxx11)
+         want_semicolon = false;
+       break;

         /* While it's legal for type qualifiers and storage class
            specifiers to follow type definitions in the grammar, only

```

Will submit when stage 1 opens up.

Reply via email to