[llvm-bugs] [Bug 31822] Unknown builtin type! UNREACHABLE executed at ASTContext.cpp:1683!

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jun 10 12:06:29 PDT 2017


Yaron Keren <yaron.keren at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Yaron Keren <yaron.keren at gmail.com> ---
fixed in r305089 by failing with errors:

file.cpp:6:6: error: 'auto' not allowed in lambda parameter
  [](auto &&) {}(stringer_for(args));
file.cpp:6:3: error: no matching function for call to object of type '(lambda
at file.cpp:6:3)'
  [](auto &&) {}(stringer_for(args));
file.cpp:8:14: note: in instantiation of function template specialization
'do_log<int>' requested here
void foo() { do_log(2); }
file.cpp:6:3: note: candidate function not viable: no known conversion from
'stringer_for' to 'int' for 1st argument
  [](auto &&) {}(stringer_for(args));
  ^              ~~~~~~~~~~~~~~~~~~
file.cpp:6:3: note: conversion candidate of type 'void (*)(int &&)'
2 errors generated.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170610/2e4ffad4/attachment.html>

More information about the llvm-bugs mailing list