[Bug c++/67319] New: Short-hand concepts for variadic member functions broken
rbock at eudoxos dot de
gcc-bugzilla@gcc.gnu.org
Sat Aug 22 18:07:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67319
Bug ID: 67319
Summary: Short-hand concepts for variadic member functions
broken
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rbock at eudoxos dot de
Target Milestone: ---
Created attachment 36240
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36240&action=edit
sample code that fails to compile with -std=c++1z
Hi,
// -----------------------------
template <typename T>
concept bool Any()
{
return true;
}
struct my_struct
{
template <Any... Args>
auto sample(Args... args) -> void;
};
int main()
{
my_struct{}.sample();
}
// -------------------------------
Compiled with -std=c++1z breaks the compiler:
10:7: error: invalid use of pack expansion expression
If the function is a free function, it works just fine, though.
Best,
Roland
More information about the Gcc-bugs
mailing list