Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang c++ crash with compound literal with array with templated element type #8277

Closed
efriedma-quic opened this issue Aug 15, 2010 · 2 comments
Labels
bugzilla Issues migrated from bugzilla c++

Comments

@efriedma-quic
Copy link
Collaborator

Bugzilla Link 7905
Resolution FIXED
Resolved on Nov 08, 2010 13:17
Version unspecified
OS Linux
CC @akyrtzi,@DougGregor

Extended Description

Testcase:
template struct M;
void foo() {
(M []) {{3}};
}

Crashes with:
clang: /home/eli/llvmgbuild/tools/clang/lib/AST/../../include/clang/AST/DeclCXX.h:382: const clang::CXXRecordDecl::DefinitionData& clang::CXXRecordDecl::data() const: Assertion `DefinitionData && "queried property of class with no definition"' failed.

@efriedma-quic
Copy link
Collaborator Author

Erm, the valid version of the testcase:
template struct M { T m; };
void foo() {
(M []) {{3}};
}

@akyrtzi
Copy link
Contributor

akyrtzi commented Nov 8, 2010

Fixed at r118428.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++
Projects
None yet
Development

No branches or pull requests

2 participants