++
Assignee: unassigned at gcc dot gnu.org
Reporter: jeff.mirwaisi at gmail dot com
Target Milestone: ---
Invocation of the destructor or pseudo destructor via a decltype-specifier
results in an error:
T t; t.~decltype(t)();
error: expected identifier before 'decltype'
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jeff.mirwaisi at gmail dot com
Target Milestone: ---
//error: 'S(F&&)-> S [with F = main(int, char**)::]', declared
using local
//type 'main(int, char**)::', is
ormal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jeff.mirwaisi at gmail dot com
Target Milestone: ---
//error: undefined reference to 'f()'
struct S{friend void f(){}}; //lexical scope of S, only discovera
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jeff.mirwaisi at gmail dot com
Target Milestone: ---
//deduction for the template type parameter of the simple class template below
//fails when used in a generic context
template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77912
Jeff Mirwaisi changed:
What|Removed |Added
Status|RESOLVED|UNCONFIRMED
Resolution|DUPLICATE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77912
--- Comment #4 from Jeff Mirwaisi ---
//To clarify:
template void f(T t){ S(t); } //deduction fails
int main()
{
auto F=[]{};
//bug 77890 - fails
S(F); //this should construct a temporary object deduced as type
S
//bug 77912 - fails
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77890
--- Comment #3 from Jeff Mirwaisi ---
Bug 77912 is not a duplicate of this bug (77890), please see 77912 for details,
unless 77890 is to be used as a general bug for all class template type
deduction issues - if not Vittorio Romeo's example of fa
++
Assignee: unassigned at gcc dot gnu.org
Reporter: jeff.mirwaisi at gmail dot com
Target Milestone: ---
//Unary right fold fails to compile
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
--- Comment #1 from Jeff Mirwaisi ---
//unary right fold fails to compile
template void f(){int A[]={(((void)N,int()),...)};}
//corresponding left fold works as expected
template void f(){int A[]={(...,((void)N,int()))};}
//both are simple test
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
--- Comment #2 from Jeff Mirwaisi ---
//error: binary expression in operand of fold-expression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927
--- Comment #3 from Jeff Mirwaisi ---
Apologies for the poor bug report, to clarify, unary right folds which use a
binary
operator in the fold parameter are failing to compile:
( (x op1 y) op2... );
//clearer examples - error: binary expressio
11 matches
Mail list logo