After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690629 - [C++] stall on preprocessing macro with a comment including an apostrophe
[C++] stall on preprocessing macro with a comment including an apostrophe
Status: VERIFIED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.2
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-12-21 23:55 UTC by Wilfred Mott
Modified: 2012-12-27 00:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Testcase (283 bytes, application/jar)
2012-12-21 23:55 UTC, Wilfred Mott
Details

Description Wilfred Mott 2012-12-21 23:55:46 UTC
Created attachment 232100 [details]
Testcase

I stumbled on it while trying to generate docs for Firefox, here's a minimized testcase:

-------
[a.cpp]
-------

#include "a.h"

#define N(f)

enum e {
  #define M N
  #include "a.h"
};

-----
[a.h]
-----

#define M

M(
    A |
    //'
    B
)

#undef M

-----

With MACRO_EXPANSION enabled (all other settings are default), this example causes Doxygen 1.8.2 to stall on preprocessing a.cpp (100% core usage, runs infinitely).

OS: Windows 7 SP1
Comment 1 Dimitri van Heesch 2012-12-22 10:50:02 UTC
Confirmed. Should be fixed in the next release.
Comment 2 Dimitri van Heesch 2012-12-26 16:09:07 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.3. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.
Comment 3 Wilfred Mott 2012-12-27 00:43:13 UTC
Verified fixed in doxygen 1.8.3. Thanks, Dimitri!