Bug 60579 - Segmentation fault on variadic 'using' within variadic template class
Summary: Segmentation fault on variadic 'using' within variadic template class
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.8.1
: P3 normal
Target Milestone: 4.9.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2014-03-19 07:34 UTC by Charlie
Modified: 2014-12-12 19:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie 2014-03-19 07:34:13 UTC
The following causes a segfault on gcc 4.8.1 and earlier versions:

template <typename... Args>
struct X
{
  template <typename Head, typename... Tail>
  using First = Head;
  
  using Y = First<Args...>;
};

Steps to reproduce: http://goo.gl/bBYNJU (GCC Explorer)
Comment 1 Jakub Jelinek 2014-03-19 08:34:12 UTC
This got fixed with r201469 on the trunk.
Comment 2 Paolo Carlini 2014-12-12 19:06:17 UTC
Closing then.