public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug demangler/102618] New: d-demangle: anonymous symbols are not being properly skipped
@ 2021-10-05 17:49 contact at lsferreira dot net
2021-10-08 16:45 ` [Bug d/102618] " ibuclaw at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: contact at lsferreira dot net @ 2021-10-05 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102618
Bug ID: 102618
Summary: d-demangle: anonymous symbols are not being properly
skipped
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: demangler
Assignee: unassigned at gcc dot gnu.org
Reporter: contact at lsferreira dot net
Target Milestone: ---
According to the D ABI specification, symbol names can contain an arbitrary
number of anonymous symbols. Currently, libiberty can't demangle the following
properly:
_D8demangle9anonymous03fooZ
demangle.anonymous.foo
On the other hand, the official demangler can successfully demangle it as a D
symbol.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/102618] d-demangle: anonymous symbols are not being properly skipped
2021-10-05 17:49 [Bug demangler/102618] New: d-demangle: anonymous symbols are not being properly skipped contact at lsferreira dot net
@ 2021-10-08 16:45 ` ibuclaw at gcc dot gnu.org
2021-10-08 16:50 ` contact at lsferreira dot net
2021-10-17 22:38 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: ibuclaw at gcc dot gnu.org @ 2021-10-08 16:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102618
ibuclaw at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |ibuclaw at gcc dot gnu.org
Component|demangler |d
CC| |ibuclaw at gcc dot gnu.org
--- Comment #1 from ibuclaw at gcc dot gnu.org ---
How did you check this? The given example passes the testsuite.
#
--format=dlang
_D8demangle9anonymous03fooZ
demangle.anonymous.foo
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/102618] d-demangle: anonymous symbols are not being properly skipped
2021-10-05 17:49 [Bug demangler/102618] New: d-demangle: anonymous symbols are not being properly skipped contact at lsferreira dot net
2021-10-08 16:45 ` [Bug d/102618] " ibuclaw at gcc dot gnu.org
@ 2021-10-08 16:50 ` contact at lsferreira dot net
2021-10-17 22:38 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: contact at lsferreira dot net @ 2021-10-08 16:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102618
--- Comment #2 from Luís Ferreira <contact at lsferreira dot net> ---
Sorry, I sent the wrong example. That example was to cover a missing test. The
actual mangle that is not being handled is _D8demangle9anonymous0Z . It should
be demangled as demangle.anonymous .
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug d/102618] d-demangle: anonymous symbols are not being properly skipped
2021-10-05 17:49 [Bug demangler/102618] New: d-demangle: anonymous symbols are not being properly skipped contact at lsferreira dot net
2021-10-08 16:45 ` [Bug d/102618] " ibuclaw at gcc dot gnu.org
2021-10-08 16:50 ` contact at lsferreira dot net
@ 2021-10-17 22:38 ` cvs-commit at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-17 22:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102618
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <law@gcc.gnu.org>:
https://gcc.gnu.org/g:fb5b0778586674c31f69d866038a5b5bd9a151ee
commit r12-4462-gfb5b0778586674c31f69d866038a5b5bd9a151ee
Author: Luís Ferreira <contact@lsferreira.net>
Date: Sun Oct 17 18:34:25 2021 -0400
[PATCH] d-demangle: properly skip anonymous symbols
libiberty/
PR d/102618
* d-demangle.c (dlang_parse_qualified): Handle anonymous
symbols correctly.
* testsuite/d-demangle-expected: New tests to cover anonymous
symbols.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-17 22:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 17:49 [Bug demangler/102618] New: d-demangle: anonymous symbols are not being properly skipped contact at lsferreira dot net
2021-10-08 16:45 ` [Bug d/102618] " ibuclaw at gcc dot gnu.org
2021-10-08 16:50 ` contact at lsferreira dot net
2021-10-17 22:38 ` cvs-commit at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).