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 1455858 Details for
Bug 1597104
G++ 7.3.1 does not compile c++ code
[?]
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.13 KB, created by
Ankur deDev
on 2018-07-02 04:20:28 UTC
(
hide
)
Description:
Test case to reproduce issue
Filename:
MIME Type:
Creator:
Ankur deDev
Created:
2018-07-02 04:20:28 UTC
Size:
1.13 KB
patch
obsolete
>// STL includes. >#include <utility> // std::move, std::forward. > >// Structure declaration. >struct Pepper {}; > >// Structure declaration. >struct Apple { Apple(int) {} }; > >// Template structure declaration. >template<typename FRUIT, typename SPICE> >struct Combination : FRUIT, SPICE >{ > // Constructor. > template<typename... ARGS> > constexpr Combination(SPICE&& spice, ARGS&&... args) > : FRUIT(std::forward<ARGS>(args)...) > , SPICE(std::move(spice)) > {} >}; > >// Structure declaration. >struct MyCombination >{ > // Using directive > using Fruit_t = Apple; > using Spice_t = Pepper; > using Combination_t = Combination<Fruit_t, Spice_t>; > > // Public member data. > Combination_t combination; > > // Constructor. > template<typename... ARGS> > constexpr MyCombination(ARGS&&... args) > noexcept(noexcept(Combination_t(Spice_t(), Fruit_t(std::forward<ARGS>(args)...)))) > : combination(Spice_t(), Fruit_t(std::forward<ARGS>(args)...)) > {} >}; > > >//! Main function. >//! \return Program exit code. >int main(int, char* []) >{ > // Init an object of type MyCombination. > MyCombination obj(Apple(4)); > > // 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 1597104
: 1455858