Skip to content

CTAD for Aggregates with Elements of Array Type of Known Array Size Fails Without Brace Elision #64625

Closed
@freaknbigpanda

Description

@freaknbigpanda

This feature landed here: https://reviews.llvm.org/D139837

Clang failure example: https://godbolt.org/z/YjWx3ohxK
Note that this example compiles with brace elision: https://godbolt.org/z/avadhafTY
GCC compiles the example as expected: https://godbolt.org/z/5d3PehGo3

Please see the following document: http://wg21.link/P2082R1 section 3.2 "Allow brace elision if array size is known" for more information

Metadata

Metadata

Assignees

Labels

c++20clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second party

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions