[Issue 6318] module isn't fully processed under weird conditions

2020-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6318

Basile-z  changed:

   What|Removed |Added

 CC|b2.t...@gmx.com |

--


[Issue 6318] module isn't fully processed under weird conditions

2018-05-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6318

Basile B.  changed:

   What|Removed |Added

 CC||b2.t...@gmx.com
 Resolution|FIXED   |WORKSFORME

--- Comment #5 from Basile B.  ---
Please use WORKSFORME as resolution when you see it works now but don't know
exactly why or which PR solved the issue.

--


[Issue 6318] module isn't fully processed under weird conditions

2018-05-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6318

Johannes Loher  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||johannes.lo...@fg4f.de
 Resolution|--- |FIXED

--- Comment #4 from Johannes Loher  ---
I don't know when this has been fixed, but with 2.080.0, I get both error
messages in all cases:

dmd -c -I.. Bar.d Handle.d
Bar.d(13): Error: undefined identifier Msg
foo
../basic/Messages.d(11): Error: template instance `flattenNamedEnum!Severity`
template flattenNamedEnum is not defined
../basic/Messages.d(11):while evaluating pragma(msg,
flattenNamedEnum!Severity)
bar

dmd -c -I.. Bar.d Handle.d Messages.d
Bar.d(13): Error: undefined identifier Msg
foo
Messages.d(11): Error: template instance `flattenNamedEnum!Severity` template
flattenNamedEnum is not defined
Messages.d(11):while evaluating pragma(msg, flattenNamedEnum!Severity)
bar

dmd -c -I.. Bar.d Messages.d Handle.d
Bar.d(13): Error: undefined identifier Msg
foo
Messages.d(11): Error: template instance `flattenNamedEnum!Severity` template
flattenNamedEnum is not defined
Messages.d(11):while evaluating pragma(msg, flattenNamedEnum!Severity)
bar

dmd -c -I.. Handle.d Bar.d
foo
../basic/Messages.d(11): Error: template instance `flattenNamedEnum!Severity`
template flattenNamedEnum is not defined
../basic/Messages.d(11):while evaluating pragma(msg,
flattenNamedEnum!Severity)
bar
Bar.d(13): Error: undefined identifier Msg

dmd -c -I.. Bar.d Messages.d Handle.d
Bar.d(13): Error: undefined identifier Msg
foo
Messages.d(11): Error: template instance `flattenNamedEnum!Severity` template
flattenNamedEnum is not defined
Messages.d(11):while evaluating pragma(msg, flattenNamedEnum!Severity)
bar


As this seems to work correctly, I'm closing this.

--


[Issue 6318] module isn't fully processed under weird conditions

2011-07-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6318



--- Comment #1 from Trass3r mrmoc...@gmx.de 2011-07-14 16:09:47 PDT ---
Well, if ever needed, here's basic.utils:

//! bring named enum members into current scope
string flattenNamedEnum(EnumType)()
if (is (EnumType == enum))
{
string s = ;
foreach (i, e; __traits(allMembers, EnumType))
{
s ~= alias  ~ EnumType.stringof ~ . ~ __traits(allMembers,
EnumType)[i] ~   ~ __traits(allMembers, EnumType)[i] ~ ;\n;
}

return s;
}


Pulling enum Level out of Bar also seems to 'resolve' this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---