Subject: bug#24619: semantic does not parse legal C++ code correctly (Emacs 25.1 and Emacs 24.5.1)

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 30 Nov 2020 13:09:22 +0100

Warren Lynn <[email-masked]> writes:

> The following C++ code is not parsed correctly (where channel_info_t is a
> structure)
>         channel_info_t* pChInfo = new channel_info_t;
>
> Semantic cannot decide the type for pChInfo. But if I change the code to:
>         channel_info_t* pChInfo = new channel_info_t();
>
> Semantic then has no issue determining the type of pChInfo.
>
> This behavior is confirmed on both Emacs 24.5.1 and 25.1, on both Windows and
> Linux.

(This bug report unfortunately got no response at the time.)

Do you have a recipe to reproduce this bug, starting from "emacs -Q"?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no