[Issue 23694] compilable/ctests2.c:51:9: error: initializer element is not constant

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23694 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 23694] compilable/ctests2.c:51:9: error: initializer element is not constant

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23694 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #3 from Dlang Bot --- @WalterB

[Issue 23700] ImportC: Missing examples of ImportC leveraging CTFE

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23700 --- Comment #6 from Walter Bright --- https://github.com/dlang/dlang.org/pull/3535 --

[Issue 23700] ImportC: Missing examples of ImportC leveraging CTFE

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23700 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 23694] compilable/ctests2.c:51:9: error: initializer element is not constant

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23694 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com See Also|

[Issue 23701] ImportC: __int64 is not documented as supported Visual C extension

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23701 --- Comment #3 from Walter Bright --- I take that back. importc.h has a #define for it: #define __int64 long long --

[Issue 23727] ImportC support imaginary real numbers

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23727 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot --- @WalterB

[Issue 23727] New: ImportC support imaginary real numbers

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23727 Issue ID: 23727 Summary: ImportC support imaginary real numbers Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: blocker Priority: P

[Issue 23727] ImportC support imaginary real numbers

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23727 Walter Bright changed: What|Removed |Added Keywords||ImportC --

[Issue 3720] Taking address of member functions possible without an instance

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3720 --- Comment #24 from Bolpat --- @Zombine(In reply to ZombineDev from comment #18) > […] > > 2. After deprecation period is finished, reintroduce the > &. but with different semantics: retunring a > delegate with context pointer set to null. Why? If

[Issue 3720] Taking address of member functions possible without an instance

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3720 dlang+iss...@me.tracemymail.com changed: What|Removed |Added CC|dlang+issues@me.tracemymail | |.com

[Issue 13511] std.traits.hasElaborateEquality!T

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

[Issue 13786] Test coverage for dmd is inadequate

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13786 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #4 from Razv

[Issue 13786] Test coverage for dmd is inadequate

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13786 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 13772] template capture error

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13772 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 13810] ICE in e2ir does not assert

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13810 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 23702] compilable/test23616.c:3:20: error: missing binary operator before token "("

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23702 --- Comment #4 from Iain Buclaw --- (In reply to Walter Bright from comment #3) > __has_extension is yet another C compiler extension (not ImportC's > invention). It's not GCC's invention either. Whose it is? It should be documented on the ImportC p

[Issue 23697] ImportC: No examples of invalid forward references in C code accepted by ImportC

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 --- Comment #6 from Iain Buclaw --- Missing definition of `T` in second example: ``` struct S s; int* p = &s.t.x; struct S { int a; struct T t; }; struct T { int b; int x; }; ``` --

[Issue 23721] runnable/test22513.c:18:28: error: field ‘t’ has incomplete type

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23721 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 23697] ImportC: No examples of invalid forward references in C code accepted by ImportC

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 --- Comment #5 from Iain Buclaw --- *** Issue 23721 has been marked as a duplicate of this issue. *** --

[Issue 23697] ImportC: No examples of invalid forward references in C code accepted by ImportC

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 --- Comment #4 from Iain Buclaw --- Another example of forward reference code that is accepted by ImportC, rejected by standard C. ``` struct S s; int* p = &s.t.x; struct S { int a; struct T t; }; ``` Giving both as examples on the ImportC document

[Issue 23720] runnable/test22513.c:16:12: error: invalid use of undefined type ‘struct S’

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23720 Iain Buclaw changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 23697] ImportC: No examples of invalid forward references in C code accepted by ImportC

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 --- Comment #3 from Iain Buclaw --- *** Issue 23720 has been marked as a duplicate of this issue. *** --

[Issue 23720] runnable/test22513.c:16:12: error: invalid use of undefined type ‘struct S’

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23720 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #2 from Iai

[Issue 23715] ImportC: No rejection of _Thread_local variables declared at function scope without "static" as per C11 6.2.4-5

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23715 Iain Buclaw changed: What|Removed |Added Summary|compilable/testcstuff1.c:27 |ImportC: No rejection of |3:

[Issue 23717] runnable/bitfields.c:192:5: error: unknown type name S; use struct keyword to refer to the type

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23717 Dlang Bot changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 23715] compilable/testcstuff1.c:273:23: error: function-scope 'tli' implicitly auto and declared '_Thread_local'

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23715 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #2 from Iai

[Issue 23712] ImportC: Unclear documentation of what type is inferred from integer literals (type of '9223372036854775808' is undefined)

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23712 --- Comment #3 from Iain Buclaw --- (In reply to Iain Buclaw from comment #2) > Seems that it is undefined behaviour in C, as the test fails under gcc, but > passes for clang. > > https://godbolt.org/z/3hnjzMhfM Note that both *do* give warnings ab

[Issue 23712] ImportC: Unclear documentation of what type is inferred from integer literals (type of '9223372036854775808' is undefined)

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23712 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org --

[Issue 23712] ImportC: Unclear documentation of what type is inferred from integer literals (type of '9223372036854775808' is undefined)

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23712 Iain Buclaw changed: What|Removed |Added Summary|compilable/testcstuff1.c:98 |ImportC: Unclear |:1: error:

[Issue 23712] compilable/testcstuff1.c:98:1: error: static assertion failed: sizeof(9223372036854775808) == 8

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23712 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #2 from Iai

[Issue 23701] ImportC: __int64 is not documented as supported Visual C extension

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23701 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org Summary|compilable/test23

[Issue 23701] compilable/test23214.c:3:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uintptr_t’

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23701 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #2 from Iai

[Issue 23700] ImportC: Missing examples of ImportC leveraging CTFE

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23700 --- Comment #5 from Iain Buclaw --- (In reply to Walter Bright from comment #4) > Indeed, CTFE is an ImportC extension. It's very useful for writing test > cases like these. Updated title, the page really should give some quick examples. --

[Issue 23700] ImportC: Missing examples of ImportC leveraging CTFE

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23700 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org Summary|compilable/test22

[Issue 23699] ImportC: Unclear documentation that struct/union/enum introduce implicit typedefs in ImportC

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23699 --- Comment #3 from Iain Buclaw --- The term used by C++ is "elaborated type specifier", which is used to distinguish between types and regular identifiers. For example, the following code is accepted by both C++ and ImportC ``` struct s { int a; };

[Issue 23699] ImportC: Unclear documentation that struct/union/enum introduce implicit typedefs in ImportC

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23699 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org Summary|compilable/test22

[Issue 23699] compilable/test22807.c:10:10: error: unknown type name ‘OldFashionedHeader’

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23699 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #2 from Iai

[Issue 23698] ImportC: __stdcall is not documented as supported MSVC/DMC extensions

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23698 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org Summary|compilable/test22

[Issue 23697] ImportC: No examples of invalid forward references in C code accepted by ImportC

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org Summary|compilable/test22

[Issue 23698] compilable/test22727.c:5:10: error: expected ‘;’ before ‘int’

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23698 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #2 from Iai

[Issue 23697] compilable/test22705.c:4:1: error: unknown type name ‘Ta’

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23697 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #2 from Iai

[Issue 22916] [dip1000] copy of ref return still treated as scope variable

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22916 Dlang Bot changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Issue 23693] ImportC: Unclear documentation of #line and linemarker support

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23693 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org Summary|compilable/testcs

[Issue 23693] compilable/testcstuff3.i:7:1: error: stray '#' in program

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23693 --- Comment #3 from Iain Buclaw --- (In reply to Walter Bright from comment #2) > ImportC has to work with the output of C preprocessors other than gcc's. > There's not much I can do about that. I recommend gcc simply not run those > tests. The point

[Issue 23692] ImportC: __pragma and __declspec are not documented as supported Visual C extensions

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23692 --- Comment #3 from Iain Buclaw --- (In reply to Walter Bright from comment #2) > (In reply to Iain Buclaw from comment #1) > > 1. It would appear that `__pragma` and `__declspec` are MSVC extensions. > > That's correct. Just like ImportC adds exten

[Issue 23692] ImportC: __pragma and __declspec are not documented as supported Visual C extensions

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23692 Iain Buclaw changed: What|Removed |Added Component|dmd |dlang.org Summary|compilable/test22

[Issue 23691] compilable/test22294.i:16:1: error: unknown type name 'this'

2023-02-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23691 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org --- Comment #2 from Iai