Bug 23878 – [REG 2.103] internal compiler error: C++ 'null' template value parameter is not supported

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-05-02T16:29:45Z
Last change time
2024-12-13T19:28:28Z
Assigned to
No Owner
Creator
Iain Buclaw
Moved to GitHub: dmd#20266 →

Comments

Comment #0 by ibuclaw — 2023-05-02T16:29:45Z
See PR, which introduced the ICE. https://github.com/dlang/dmd/pull/15100 ``` template Template(T...) { extern(C++) const __gshared int Template = 0; } auto x = Template!(null); ```
Comment #1 by razvan.nitu1305 — 2023-05-03T08:04:27Z
As pointed out in the PR, this is not a regression. Before the PR it used to hit an assert. The error that was used may not be ideal but it follows the pattern of what is already there.
Comment #2 by razvan.nitu1305 — 2023-05-03T08:09:20Z
This should be closed, but until you answer I will downgrade the severity to `normal`.
Comment #3 by robert.schadek — 2024-12-13T19:28:28Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20266 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB