summaryrefslogtreecommitdiffstats
path: root/tests/initializer-list/struct-inherit-diagnostics.slang
Commit message (Collapse)AuthorAge
* Fix a bug in default ctor synthesizing (#6527)kaizhangNV2025-03-06
* Fix a bug in default ctor synthesizing - This is fix for the implementation bug, when a struct has explicit ctor we should not synthesize the default ctor anymore. - When invoke the synthesized ctor converted from initializer list, we should check if the struct is a c-style type if it struct has no synthesized ctor. In this case we should report error because it's invalid to use initializer list here. - The only exception is the unsized array, we still have to fall back to use the legacy initializer list logic to initialize the unsized array until we formalize a proper solution. - update test.