Subject: bug#62339: cc-mode fontifies variables incorrectly when const follows type

From: Daniel Colascione <[email-masked]>
Date: Wed, 22 Mar 2023 10:19:55 -0400

Eli Zaretskii <[email-masked]> writes:

>> From: Daniel Colascione <[email-masked]>
>> Date: Tue, 21 Mar 2023 11:14:13 -0400
>> 
>> 
>> cc-mode incorrectly fontifies my_variable as a type in "MyType const
>> my_variable"
>
> I cannot reproduce this, at least not in Emacs 29 and 30.  In which
> version of Emacs do you see this?  If Emacs 29 or later, can you show
> a minimal example source file where it happens?
>
> Thanks.

This problem reproduces for me on latest master with emacs -Q:

```
TEST(Foo, Bar) {
  NamedTemporaryDirectory const test_directory;
}
```