[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bison Dlang - alias this with private member causes errors
From: |
Isaac Bunsen |
Subject: |
Bison Dlang - alias this with private member causes errors |
Date: |
Tue, 7 Nov 2023 19:34:47 -0800 |
line 274 of `\data\skeletons\d.m4` ` private int yycode_;` needs to be
replaced with ` int yycode_;` The problem is while aliases to private
things are supported in D, the `alias *X* this` construct does not. Not
even in the same file (which is not not normal for things declared private
in D and may be a bug). Regardless, what happens is it won't build on dmd
(the D reference compiler), nor ldc2 (the popular llvm D implementation)
because it uses the struct in a call to format later in the generated code
which then expands to access the member.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bison Dlang - alias this with private member causes errors,
Isaac Bunsen <=