-
Notifications
You must be signed in to change notification settings - Fork 13.5k
ICE with alias attribute and placeholder for return type deduction #33335
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
Comments
This still crashes on post 16 trunk(9094b3b) code
dump
|
@llvm/issue-subscribers-clang-codegen
| | |
| --- | --- |
| Bugzilla Link | [33988](https://llvm.org/bz33988) |
| Version | trunk |
| OS | All |
| CC | @AaronBallman,@hfinkel |
Extended DescriptionClang ICEs when an alias is defined using a placeholder type. SOURCE (<stdin>):extern "C" auto bar() { return 0; } COMPILER INVOCATION:clang++ -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o /dev/null -x c++ -std=c++14 - ACTUAL OUTPUT:<stdin>:1:17: warning: 'bar' has C-linkage specified, but returns user-defined type 'auto' which is incompatible with C
EXPECTED OUTPUT:(clean compile) COMPILER VERSION INFO (clang++ -v):clang version 6.0.0 (https://github.com/llvm-mirror/clang.git 7617352ce7f8b221d531dce1f95f2ee78e57cfac) (https://github.com/llvm-mirror/llvm.git 38e69b8) |
Extended Description
Clang ICEs when an alias is defined using a placeholder type.
SOURCE ():
COMPILER INVOCATION:
ACTUAL OUTPUT:
EXPECTED OUTPUT:
(clean compile)
COMPILER VERSION INFO (clang++ -v):
The text was updated successfully, but these errors were encountered: