[LLVMbugs] [Bug 14196] We don't report invalid gotos in function templates until they are instantiated
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 29 13:47:05 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=14196
Eli Friedman <sharparrow1 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |INVALID
--- Comment #1 from Eli Friedman <sharparrow1 at yahoo.com> 2012-10-29 15:47:05 CDT ---
There isn't any problem to report:
template<int a>
struct C {
C(int x);
~C();
int i;
};
template<int a>
void f(void **ip) {
static void *ips[] = { &&l0 };
l0:
const int &c1 = C<a>(1).i;
goto *ip;
}
template<>
struct C<4> {
C(int x);
int i;
};
void g() {
f<4>(0);
}
--
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