[Bug c++/77815] New: access to destructor via decltype-specifier

2016-10-01 Thread jeff.mirwaisi at gmail dot com
++ 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'

[Bug c++/77890] New: class template type deduction fails for lambda functions

2016-10-06 Thread jeff.mirwaisi at gmail dot com
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

[Bug c++/77892] New: local function declarations don't match namespace scope declarations

2016-10-06 Thread jeff.mirwaisi at gmail dot com
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

[Bug c++/77912] New: class template deduction fails in template functions and generic lambdas

2016-10-09 Thread jeff.mirwaisi at gmail dot com
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

[Bug c++/77912] [C++17 feature] class template deduction fails in template functions and generic lambdas

2016-10-10 Thread jeff.mirwaisi at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77912 Jeff Mirwaisi changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|DUPLICATE

[Bug c++/77912] [C++17 feature] class template deduction fails in template functions and generic lambdas

2016-10-10 Thread jeff.mirwaisi at gmail dot com
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

[Bug c++/77890] class template type deduction fails for lambda functions

2016-10-10 Thread jeff.mirwaisi at gmail dot com
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

[Bug c++/77927] New: unary right fold fails to compile

2016-10-10 Thread jeff.mirwaisi at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: jeff.mirwaisi at gmail dot com Target Milestone: --- //Unary right fold fails to compile

[Bug c++/77927] unary right fold fails to compile

2016-10-10 Thread jeff.mirwaisi at gmail dot com
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

[Bug c++/77927] unary right fold fails to compile

2016-10-10 Thread jeff.mirwaisi at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77927 --- Comment #2 from Jeff Mirwaisi --- //error: binary expression in operand of fold-expression

[Bug c++/77927] unary right fold fails to compile

2016-10-10 Thread jeff.mirwaisi at gmail dot com
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