GNU bug report logs - #24619
semantic does not parse legal C++ code correctly (Emacs 25.1 and Emacs 24.5.1)

Previous Next

Package: emacs;

Reported by: Warren Lynn <wrn.lynn <at> gmail.com>

Date: Tue, 4 Oct 2016 21:04:01 UTC

Severity: normal

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 24619 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Warren Lynn <wrn.lynn <at> gmail.com>
Cc: 24619 <at> debbugs.gnu.org
Subject: Re: bug#24619: semantic does not parse legal C++ code correctly
 (Emacs 25.1 and Emacs 24.5.1)
Date: Mon, 30 Nov 2020 13:09:22 +0100
Warren Lynn <wrn.lynn <at> gmail.com> 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




This bug report was last modified 4 years and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.