Open Quuxplusone opened 12 years ago
Bugzilla Link | PR12562 |
Status | NEW |
Importance | P normal |
Reported by | llvm-bugs@quasiparticle.net |
Reported on | 2012-04-15 11:25:11 -0700 |
Last modified on | 2012-07-14 18:48:47 -0700 |
Version | trunk |
Hardware | PC Linux |
CC | llvm-bugs@lists.llvm.org, william@lynch.us |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
On LLVM 3.1, I can not reproduce this.
[6:46pm][wlynch@apple /tmp] cat foo.cc
int main() {
decltype(decltype(1)()) x;
}
[6:46pm][wlynch@apple /tmp] /opt/llvm/3.1/bin/clang++ -std=c++11 -o foo foo.cc -
Wall
foo.cc:2:26: warning: unused variable 'x' [-Wunused-variable]
decltype(decltype(1)()) x;
^
1 warning generated.