[LLVMbugs] [Bug 10230] New: UNREACHABLE: non-canonical or dependent type in IR-generation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 30 10:24:49 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10230
Summary: UNREACHABLE: non-canonical or dependent type in
IR-generation
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: zilla at kayari.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
template<bool, typename T = void> struct enable_if { };
template<typename T> struct enable_if<true, T> { typedef T type; };
template<typename... E> struct tuple { explicit tuple(E...) { } };
template<typename... Elements>
struct make_tuple
{
template<typename... Args>
static typename
enable_if<sizeof...(Args)==sizeof...(Elements),
tuple<Elements...>>::type
make(Args&&... args)
{
return tuple<Elements...>{ Elements(args)... };
}
};
int main()
{
make_tuple<short, int, short>::make(1, '2', 3.0);
}
$ clang++ -v
clang version 3.0 (trunk 134169)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$
$ clang++ -std=c++0x make_tuple2.cc
non-canonical or dependent type in IR-generation
UNREACHABLE executed at
/home/wakelj/src/llvm/llvm/tools/clang/lib/CodeGen/CodeGenFunction.cpp:64!
...
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list