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

marc at kdab dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marc at kdab dot com

--- Comment #2 from marc at kdab dot com ---
Still in GCC 10. The error message and surrounding warning are pointing at
everything _but_ where the error is:

<source>:1:6: warning: elaborated-type-specifier for a scoped enum must not use
the 'class' keyword

    1 | enum class IntegerSystem : int8 {};

      | ~~~~ ^~~~~

      |      -----

<source>:1:12: error: use of enum 'IntegerSystem' without previous declaration

    1 | enum class IntegerSystem : int8 {};

      |            ^~~~~~~~~~~~~

<source>:1:26: error: expected unqualified-id before ':' token

    1 | enum class IntegerSystem : int8 {};

      |                          ^

Reply via email to