This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/58150] debug info about definition of enum class not emitted if the declaration was already used in a class
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Oct 2017 20:31:34 +0000
- Subject: [Bug debug/58150] debug info about definition of enum class not emitted if the declaration was already used in a class
- Auto-submitted: auto-generated
- References: <bug-58150-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58150
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-10-17
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #3 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to npl from comment #2)
> Created attachment 42381 [details]
> another testcase
>
> I was generating a testcase before discovering this bug.
> Problem is the same:
>
> A class/struct using a prototyped, not yet defined "enum class" will prevent
> that debug information for this "enum class" to be emitted.
> Only if no class/struct uses a "enum class" before its defined, the debug
> info will be available.
>
> Affected: GCC 5.3.0, GCC 6.4.0, GCC 7.2.0
>
> Please fix this, it really makes debugging a pain
Taking this as confirmation.