[Issue 23676] Compilation differences w/ braceless vs brace-full static if within switch statement

2023-02-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23676 RazvanN changed: What|Removed |Added OS|Mac OS X|All --

[Issue 23676] Compilation differences w/ braceless vs brace-full static if within switch statement

2023-02-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23676 --- Comment #4 from RazvanN --- I manually reduced it to get rid of phobos and other unrelated features: module lexer; enum Type { operatorSlash, operatorSlashEqual, operatorAnd, operatorAndEqual, operatorAndAnd,

[Issue 23676] Compilation differences w/ braceless vs brace-full static if within switch statement

2023-02-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23676 --- Comment #3 from Bradley Chatha --- Marking the nested function as @safe prevents the error message; allows the compilation to succeed, however the compiler does still hang for a while before it finishes. --

[Issue 23676] Compilation differences w/ braceless vs brace-full static if within switch statement

2023-02-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23676 --- Comment #2 from Bradley Chatha --- Even more strangely: If you delete any line within the body of the case statement that is guarded by the fault `static if`, compilation succeeds. What a very strange edge case this is hitting. --

[Issue 23676] Compilation differences w/ braceless vs brace-full static if within switch statement

2023-02-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23676 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com