Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 354862 Details for
Bug 479444
[4.7/4.8/4.9/5/6ICE] sys-devel/gcc-4.7.2-r1 - g++: internal compiler error: Segmentation fault (program cc1plus)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
This is the file that causes the crash.
gcc_crash.cc (text/plain), 626 bytes, created by
nacitar sevaht
on 2013-08-01 21:50:20 UTC
(
hide
)
Description:
This is the file that causes the crash.
Filename:
MIME Type:
Creator:
nacitar sevaht
Created:
2013-08-01 21:50:20 UTC
Size:
626 bytes
patch
obsolete
>#include <limits> >#include <type_traits> > >// This code is nonsense; it was produced by minimizing the problem repeatedly. >constexpr bool test_func(int value) { > return true; >} >template <int TParm, class Enable=void> >struct test_class { > static constexpr int value = 0; >}; >template <int TParm> >struct test_class< > TParm, > // This line ultimately causes the crash. > typename std::enable_if<test_func(test_class<TParm-1>::value)>::type > > { > static constexpr int value = 1; >}; > >// This instantiation is required in order to crash. >template class test_class<2,void>; > >int main(int argc,char*argv[]) { > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 479444
: 354862 |
354918