Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1470644 Details for
Bug 1608724
GCC template alias issues
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test case to reproduce issue
test.cpp (text/x-csrc), 1.34 KB, created by
Ankur deDev
on 2018-07-26 08:20:59 UTC
(
hide
)
Description:
Test case to reproduce issue
Filename:
MIME Type:
Creator:
Ankur deDev
Created:
2018-07-26 08:20:59 UTC
Size:
1.34 KB
patch
obsolete
>// A template struct named Foo. >template<typename> >struct Foo {}; > >// A template alias for type Foo. >template<typename TYPE> >using AliasFoo = Foo<TYPE>; > >// A variadic template alias for type Foo. >template<typename... ARGS> >using VariadicAliasFoo = Foo<ARGS...>; > >// A template struct named Bar. >template<template<typename...> class TEMPLATE, typename TYPE> >struct Bar >{ > static constexpr bool value = false; >}; > >// Partial specialization of template struct Bar. >template<template<typename...> class TEMPLATE, typename... ARGS> >struct Bar< TEMPLATE, TEMPLATE<ARGS...> > >{ > static constexpr bool value = true; >}; > > >// The main function. >int main() >{ > // These compile time assertions are satisfied (as expected). > static_assert(Bar<Foo, Foo<int> >::value, ""); > static_assert(Bar<Foo, AliasFoo<int> >::value, ""); > static_assert(Bar<Foo, VariadicAliasFoo<int> >::value, ""); > static_assert(Bar<AliasFoo, Foo<int> >::value, ""); > static_assert(Bar<AliasFoo, AliasFoo<int> >::value, ""); > static_assert(Bar<AliasFoo, VariadicAliasFoo<int> >::value, ""); > > // These compile time assertions are not satisfied (unexpected). > static_assert(Bar<VariadicAliasFoo, Foo<int> >::value, ""); > static_assert(Bar<VariadicAliasFoo, AliasFoo<int> >::value, ""); > static_assert(Bar<VariadicAliasFoo, VariadicAliasFoo<int> >::value, ""); > > // Always return zero. > 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 1608724
: 1470644