CTAD for Aggregates with Elements of Array Type of Known Array Size Fails Without Brace Elision (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

llvm / llvm-project Public

Additional navigation options

New issue

New issue

Closed

#94889

Closed

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

#64625

#94889

Assignees

yuanfang-chen

Labels

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

@freaknbigpanda

Description

@freaknbigpanda

freaknbigpanda

opened

on Aug 11, 2023

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