<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/initializer-list/struct-inherit-diagnostics.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-03-07T04:38:28+00:00</updated>
<entry>
<title>Fix a bug in default ctor synthesizing (#6527)</title>
<updated>2025-03-07T04:38:28+00:00</updated>
<author>
<name>kaizhangNV</name>
<email>149626564+kaizhangNV@users.noreply.github.com</email>
</author>
<published>2025-03-07T04:38:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=e1952dc8cf8f5b62d00ce114e353c5390cc6c37a'/>
<id>urn:sha1:e1952dc8cf8f5b62d00ce114e353c5390cc6c37a</id>
<content type='text'>
* 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.</content>
</entry>
</feed>
