[Issue 19158] declaration is already defined in another scope in main at line

2021-07-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19158

Mathias LANG  changed:

   What|Removed |Added

 CC||pro.mathias.l...@gmail.com

--- Comment #4 from Mathias LANG  ---
For reference, this was a duplicate of issue 14831.

--


[Issue 19158] declaration is already defined in another scope in main at line

2021-07-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19158

moonlightsenti...@disroot.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||moonlightsentinel@disroot.o
   ||rg
 Resolution|--- |FIXED

--- Comment #3 from moonlightsenti...@disroot.org ---
Fixed in 2.096.1

--


[Issue 19158] declaration is already defined in another scope in main at line

2021-07-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19158

KytoDragon  changed:

   What|Removed |Added

 CC||kytodra...@e.mail.de
   Hardware|x86 |All
 OS|Mac OS X|All

--- Comment #2 from KytoDragon  ---
I would like to add, that this also blocks the usage of multiple static
variables with the same name inside one function, not just type definitions.

void main() {
{
__gshared int x = 0;
}
{
__gshared float x = 1;
}
}

This is used by libraries like Dear ImGui.

--


[Issue 19158] declaration is already defined in another scope in main at line

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

--- Comment #1 from Ali Ak  ---
*should be no different than...

--