Skip to content

fix #23335 - some lowerings not shown with -vcg-ast#23336

Open
rainers wants to merge 1 commit into
dlang:masterfrom
rainers:issue23335
Open

fix #23335 - some lowerings not shown with -vcg-ast#23336
rainers wants to merge 1 commit into
dlang:masterfrom
rainers:issue23335

Conversation

@rainers

@rainers rainers commented Jun 29, 2026

Copy link
Copy Markdown
Member

forward to lowered AST in CastExp, EqualExp and ConstructExp, add template arguments

Comment thread compiler/src/dmd/hdrgen.d Outdated
{
buf.put(s.ident.toChars());
// after semantic, symbols don't go through a ScopeExp that also shows the template arguments
if (auto parent = s.toParent())

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so happy with this, it should probably show the fully qualified name instead. This is missing eventually, see for example https://github.com/dlang/dmd/pull/23336/changes#diff-f6ad7de81f2a7f7e855f3bca2875959556956886416253379e8602d7790fc497R104

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now showing the fully qualified names for non-locals/fields here. Sometimes a bit too verbose, but probably better than omitting information.

@rainers rainers force-pushed the issue23335 branch 2 times, most recently from 185e482 to 85d33c3 Compare July 3, 2026 09:45
forward to lowered AST in CastExp, EqualExp and ConstructExp, print fully qualified for non-locals/fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants