public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65389] New: long compile time on incorrect code with lambdas
@ 2015-03-11 11:51 vanyacpp at gmail dot com
0 siblings, 0 replies; only message in thread
From: vanyacpp at gmail dot com @ 2015-03-11 11:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65389
Bug ID: 65389
Summary: long compile time on incorrect code with lambdas
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vanyacpp at gmail dot com
The following program takes ages to compile:
template <typename F, typename FF>
void demangle_type_rec(F out, FF prepend_suffix)
{
// int class_type = // uncomment to get infinite stream of error messages
demangle_type([&] {});
}
template <typename Out>
void demangle_type(Out out)
{
demangle_type_rec(out, [&] {});
}
void print_seqid()
{
demangle_type([&] {});
}
Probably it is possible to limit the compilation time on this incorrect case?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-11 11:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-11 11:51 [Bug c++/65389] New: long compile time on incorrect code with lambdas vanyacpp at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).