Skip to content

Crash on using local struct in function template as template parameter #10057

@llvmbot

Description

@llvmbot
Bugzilla Link 9685
Resolution FIXED
Resolved on Dec 11, 2013 18:52
Version unspecified
OS All
Attachments The source responsible for the crash, Clang's crash log
Reporter LLVM Bugzilla Contributor
CC @Amanieu,@majnemer,@dwblaikie,@DougGregor,@pogo59,@zygoloid,@rjmccall,@HighCommander4

Extended Description

The attached code crashes clang on compilation. It seems to be a weird combination of

  • A class template
  • A local struct in the class template's method which in turn contains a
    templated ()-operator and attributes
  • An instanciation of the local struct being passed to a template method of
    another class template

I attached the crash log. Clang's version is:

$ /opt/bin/clang -v
clang version 3.0 (trunk 129269)
Target: x86_64-apple-darwin10
Thread model: posix

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillac++11compile-failUse [accepts-invalid] and [rejects-valid] instead

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions