public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61341] New: internal compiler error: in tsubst, at cp/pt.c:11313
@ 2014-05-28 10:23 vanyacpp at gmail dot com
2014-05-28 10:41 ` [Bug c++/61341] " vanyacpp at gmail dot com
2014-08-08 10:04 ` trtrmitya at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: vanyacpp at gmail dot com @ 2014-05-28 10:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61341
Bug ID: 61341
Summary: internal compiler error: in tsubst, at cp/pt.c:11313
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vanyacpp at gmail dot com
GCC 4.8.2
template<typename ...T> /* 1 */
struct X
{
};
template<typename T>
struct X<X<T>, X<T> > /* 2 */
{
T i;
};
template<typename ...T>
struct X<X<T, T...>...> /* 3 */
{
const int static value = sizeof...(T);
};
template<int>
struct Y
{
};
template<>
struct Y<2>
{
const static int value;
};
int main(int ARGC, char *ARGV[])
{
//X<int, int> xii; // 1
//xii.i; // error
//X<X<int>, X<int> > xxixi; // 2
//xxixi.i; // ok
Y<X<X<int, int, double>, X<double, int, double> >::value>::value;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/61341] internal compiler error: in tsubst, at cp/pt.c:11313
2014-05-28 10:23 [Bug c++/61341] New: internal compiler error: in tsubst, at cp/pt.c:11313 vanyacpp at gmail dot com
@ 2014-05-28 10:41 ` vanyacpp at gmail dot com
2014-08-08 10:04 ` trtrmitya at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: vanyacpp at gmail dot com @ 2014-05-28 10:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61341
--- Comment #1 from Ivan Sorokin <vanyacpp at gmail dot com> ---
Reduced case:
template<class ...T>
struct X
{};
template<class ...T>
void foo(X<T, T...>... a);
void test()
{
foo(X<int, int, double>(), X<double, int, double>());
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/61341] internal compiler error: in tsubst, at cp/pt.c:11313
2014-05-28 10:23 [Bug c++/61341] New: internal compiler error: in tsubst, at cp/pt.c:11313 vanyacpp at gmail dot com
2014-05-28 10:41 ` [Bug c++/61341] " vanyacpp at gmail dot com
@ 2014-08-08 10:04 ` trtrmitya at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: trtrmitya at gmail dot com @ 2014-08-08 10:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61341
Dmitry <trtrmitya at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trtrmitya at gmail dot com
--- Comment #2 from Dmitry <trtrmitya at gmail dot com> ---
I confirm that this example program leads to internal compiler error for the
latest snapshots of gcc-4.8 and gcc-4.9
(tested on FreeBSD-10/STABLE with gcc built from ports collection)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-08 10:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-28 10:23 [Bug c++/61341] New: internal compiler error: in tsubst, at cp/pt.c:11313 vanyacpp at gmail dot com
2014-05-28 10:41 ` [Bug c++/61341] " vanyacpp at gmail dot com
2014-08-08 10:04 ` trtrmitya 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).