[Bug c++/58500] [C++1y] Crash with auto in function parameter

2013-09-23 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58500 --- Comment #2 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Mon Sep 23 22:43:44 2013 New Revision: 202851 URL: http://gcc.gnu.org/viewcvs?rev=202851&root=gcc&view=rev Log: Fix 58500. gcc/cp/ PR c++/58500 * type

[Bug c++/58534] [c++1y] ICE with auto in template function parameters

2013-11-12 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58534 --- Comment #1 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Tue Nov 12 20:17:33 2013 New Revision: 204714 URL: http://gcc.gnu.org/viewcvs?rev=204714&root=gcc&view=rev Log: Refactor implicit function template implementation

[Bug c++/58536] [c++1y] ICE with auto in constructor

2013-11-12 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58536 --- Comment #3 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Tue Nov 12 20:17:33 2013 New Revision: 204714 URL: http://gcc.gnu.org/viewcvs?rev=204714&root=gcc&view=rev Log: Refactor implicit function template implementation

[Bug c++/58637] [c++1y] ICE with wrong usage of template<> in front of function containing auto parameter

2013-11-12 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58637 --- Comment #1 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Tue Nov 12 20:17:33 2013 New Revision: 204714 URL: http://gcc.gnu.org/viewcvs?rev=204714&root=gcc&view=rev Log: Refactor implicit function template implementation

[Bug c++/58549] [4.9 Regression] [c++1y] ICE with local function in function with auto parameter

2013-11-12 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58549 --- Comment #6 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Tue Nov 12 20:17:33 2013 New Revision: 204714 URL: http://gcc.gnu.org/viewcvs?rev=204714&root=gcc&view=rev Log: Refactor implicit function template implementation

[Bug c++/58548] [4.9 Regression] [c++1y] ICE with local struct in function with auto parameter

2013-11-12 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58548 --- Comment #4 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Tue Nov 12 20:17:33 2013 New Revision: 204714 URL: http://gcc.gnu.org/viewcvs?rev=204714&root=gcc&view=rev Log: Refactor implicit function template implementation

[Bug c++/58533] [c++1y] ICE with auto in function pointer

2013-11-14 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58533 --- Comment #3 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Thu Nov 14 08:26:21 2013 New Revision: 204776 URL: http://gcc.gnu.org/viewcvs?rev=204776&root=gcc&view=rev Log: Added testcase for 58533, fixed by rev 2047

[Bug c++/59113] [c++1y] ICE using auto as parameter in local function

2013-11-24 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59113 --- Comment #1 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Mon Nov 25 07:43:55 2013 New Revision: 205343 URL: http://gcc.gnu.org/viewcvs?rev=205343&root=gcc&view=rev Log: Disallow implicit function templates in local f

[Bug c++/59112] [c++1y] ICE using auto as parameter in local class

2013-11-24 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59112 --- Comment #1 from abutcher at gcc dot gnu.org --- Author: abutcher Date: Mon Nov 25 07:43:55 2013 New Revision: 205343 URL: http://gcc.gnu.org/viewcvs?rev=205343&root=gcc&view=rev Log: Disallow implicit function templates in local f

[Bug c++/69139] [4.9/5/6 Regression] deduction failure with trailing return type in function template argument

2016-02-08 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69139 --- Comment #4 from Adam Butcher --- @TC: Good call. The patch at https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00495.html doesn't handle cv/ref qualifiers. I've expanded the testcase locally and will fix up the look-ahead solution to handle th

[Bug c++/69139] [4.9/5/6 Regression] deduction failure with trailing return type in function template argument

2016-02-08 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69139 --- Comment #5 from Adam Butcher --- The patch at https://gcc.gnu.org/ml/gcc-patches/2016-02/msg00561.html adds handling for cv/ref mentioned by TC in #c3. I've added handling of tx and exception specs to.

[Bug c++/69139] [4.9/5/6 Regression] deduction failure with trailing return type in function template argument

2016-02-08 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69139 Adam Butcher changed: What|Removed |Added Assignee|abutcher at gcc dot gnu.org|unassigned at gcc dot gnu.org

[Bug c++/61636] generic lambda: segfault / "cannot call member function without object"

2016-12-15 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Adam Butcher changed: What|Removed |Added Assignee|abutcher at gcc dot gnu.org|unassigned at gcc dot gnu.org

[Bug c++/77914] Wrong lambda definition accepted

2016-12-15 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77914 --- Comment #4 from Adam Butcher --- (In reply to Michele Caini from comment #3) > (In reply to Jakub Jelinek from comment #1) > > Shall we remove that altogether, or just pedwarn on it? > > I suspect it should be rejected, unless it is an inten

[Bug c++/61636] generic lambda: segfault / "cannot call member function without object"

2017-01-19 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #26 from Adam Butcher --- (In reply to Nathan Sidwell from comment #25) > Fixed. We capture this if we find at least one non-static member function. > This agrees with Clang's implementation, after discussion with Richard Smith. >

[Bug c++/64382] ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template

2017-01-19 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64382 Adam Butcher changed: What|Removed |Added Status|RESOLVED|ASSIGNED Resolution|DUPLICATE

[Bug c++/64382] ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template

2017-01-27 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64382 --- Comment #7 from Adam Butcher --- Author: abutcher Date: Fri Jan 27 07:59:06 2017 New Revision: 244962 URL: https://gcc.gnu.org/viewcvs?rev=244962&root=gcc&view=rev Log: Fix PR c++/64382 PR c++/64382 * cp/parser.c (parsing_de

[Bug c++/64382] ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template

2017-01-27 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64382 Adam Butcher changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/60573] [c++1y] ICE with defining generic function of nested class in class scope

2014-03-18 Thread abutcher at gcc dot gnu.org
||2014-03-19 Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org Target Milestone|--- |4.9.0 Ever confirmed|0 |1

[Bug c++/60627] [c++1y] ICE in explicit template instantiation containing auto parameter

2014-03-24 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60627 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Mon Mar 24 20:40:15 2014 New Revision: 208799 URL: http://gcc.gnu.org/viewcvs?rev=208799&root=gcc&view=rev Log: Fix PR c++/60627 PR c++/60627 * parser.c (cp_parser_parameter_dec

[Bug c++/60627] [c++1y] ICE in explicit template instantiation containing auto parameter

2014-03-24 Thread abutcher at gcc dot gnu.org
|--- |FIXED Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org Target Milestone|--- |4.9.0 --- Comment #2 from Adam Butcher --- Fixed in 4.9.

[Bug c++/60626] [c++1y] ICE with pointer to function with auto parameter

2014-03-24 Thread abutcher at gcc dot gnu.org
at gcc dot gnu.org |abutcher at gcc dot gnu.org Target Milestone|--- |4.9.0

[Bug c++/60626] [c++1y] ICE with pointer to function with auto parameter

2014-03-24 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60626 Adam Butcher changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|2014-03-23 00:00:00

[Bug c++/60573] [c++1y] ICE with defining generic function of nested class in class scope

2014-03-28 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60573 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Fri Mar 28 20:41:45 2014 New Revision: 208921 URL: http://gcc.gnu.org/viewcvs?rev=208921&root=gcc&view=rev Log: Fix PR c++/60573 PR c++/60573 * name-lookup.h (cp_binding_level):

[Bug c++/60573] [c++1y] ICE with defining generic function of nested class in class scope

2014-03-28 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60573 Adam Butcher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/60626] [c++1y] ICE with pointer to function with auto parameter

2014-03-29 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60626 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Sat Mar 29 19:23:44 2014 New Revision: 208940 URL: http://gcc.gnu.org/viewcvs?rev=208940&root=gcc&view=rev Log: Fix PR c++/60626 PR c++/60626 * parser.c (cp_parser_init_declarat

[Bug c++/60626] [c++1y] ICE with pointer to function with auto parameter

2014-03-29 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60626 Adam Butcher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters

2014-06-24 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537 Adam Butcher changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org

[Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters

2014-06-25 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537 --- Comment #7 from Adam Butcher --- Author: abutcher Date: Thu Jun 26 05:12:52 2014 New Revision: 212008 URL: https://gcc.gnu.org/viewcvs?rev=212008&root=gcc&view=rev Log: Fix PR c++/61537 * parser.c (cp_parser_elaborated_type_specifier):

[Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters

2014-06-25 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537 Adam Butcher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/65750] [4.9/5 Regression] misinterpret in a virtual member function with a C++11 style function signature

2015-04-13 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65750 --- Comment #3 from Adam Butcher --- Agreed. Upon seeing the 'auto' in the parameter list, we'll synthesize a template parameter for 'g'. I think Paolo added the diagnostic for virtual to fix an ICE. I'm not sure immediately how to handle this

[Bug c++/64382] ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template

2015-04-13 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64382 Adam Butcher changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org

[Bug c++/65750] [4.9/5 Regression] misinterpret in a virtual member function with a C++11 style function signature

2015-04-14 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65750 --- Comment #5 from Adam Butcher --- This lookahead sketch (https://gcc.gnu.org/ml/gcc-patches/2015-04/msg00712.html) appears to work but I've don't limited testing.

[Bug c++/59635] [c++1y] ICE with auto and ... as lambda parameter

2014-01-06 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59635 --- Comment #2 from Adam Butcher --- Author: abutcher Date: Mon Jan 6 18:22:19 2014 New Revision: 206368 URL: http://gcc.gnu.org/viewcvs?rev=206368&root=gcc&view=rev Log: Fix PR c++/59635 PR c++/59635 * cp/lambda.c (maybe_add_lambda_con

[Bug c++/59636] [c++1y] ICE with missing template parameter in lambda

2014-01-06 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59636 --- Comment #2 from Adam Butcher --- Author: abutcher Date: Mon Jan 6 18:22:29 2014 New Revision: 206369 URL: http://gcc.gnu.org/viewcvs?rev=206369&root=gcc&view=rev Log: Fix PR c++/59636 PR c++/59636 * cp/parser.c (cp_parser_template_p

[Bug c++/59629] [4.9 Regression] [c++11] ICE with invalid use of auto in lambda function

2014-01-06 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59629 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Mon Jan 6 18:22:38 2014 New Revision: 206370 URL: http://gcc.gnu.org/viewcvs?rev=206370&root=gcc&view=rev Log: Fix PR c++/59629 PR c++/59629 * cp/parser.c (cp_parser_lambda_exp

[Bug c++/59638] [c++1y] ICE with pointer to function that has auto as parameter

2014-01-06 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59638 --- Comment #3 from Adam Butcher --- Author: abutcher Date: Mon Jan 6 18:22:48 2014 New Revision: 206371 URL: http://gcc.gnu.org/viewcvs?rev=206371&root=gcc&view=rev Log: Fix PR c++/59638 PR c++/59638 * cp/parser.c (cp_parser_init_decla

[Bug c++/60033] ICE in retrieve_specialization while compiling recursive generic lambda

2014-02-03 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60033 Adam Butcher changed: What|Removed |Added CC||abutcher at gcc dot gnu.org --- Comment

[Bug c++/60033] ICE in retrieve_specialization while compiling recursive generic lambda

2014-02-03 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60033 Adam Butcher changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #4 fr

[Bug c++/60033] ICE in retrieve_specialization while compiling recursive generic lambda

2014-02-03 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60033 --- Comment #5 from Adam Butcher --- Turns out that the above breaks the generic lambda variadic testcase: auto vglambda = [](auto printer) { return [=](auto&& ... ts) { // OK: ts is a function parameter pack printer(std::forward(ts).

[Bug c++/60190] [c++1y] ICE with invalid return type of template lambda

2014-02-18 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60190 --- Comment #4 from Adam Butcher --- Author: abutcher Date: Tue Feb 18 21:07:48 2014 New Revision: 207852 URL: http://gcc.gnu.org/viewcvs?rev=207852&root=gcc&view=rev Log: Fix PR c++/60190. PR c++/60190 * parser.c (cp_parser_lambda_decla

[Bug c++/60064] [c++1y] ICE with auto as parameter of friend function

2014-02-18 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60064 --- Comment #2 from Adam Butcher --- Author: abutcher Date: Tue Feb 18 22:29:56 2014 New Revision: 207856 URL: http://gcc.gnu.org/viewcvs?rev=207856&root=gcc&view=rev Log: Fix PR c++/60064. PR c++/60064 * parser.c (cp_parser_member_decla

[Bug c++/60065] [c++1y] ICE with auto parameter pack

2014-02-19 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60065 Adam Butcher changed: What|Removed |Added CC||abutcher at gcc dot gnu.org --- Comment

[Bug c++/60065] [c++1y] ICE with auto parameter pack

2014-02-19 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60065 --- Comment #2 from Adam Butcher --- Turns out the base template parameter index was not been initialized correctly so it was trying to convert the 'int' parameter to a pack as well as the invented template parameter generated for the 'auto'. See

[Bug c++/60053] [c++1y] ICE with auto as member template function parameter

2014-02-20 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60053 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Fri Feb 21 07:47:55 2014 New Revision: 207980 URL: http://gcc.gnu.org/viewcvs?rev=207980&root=gcc&view=rev Log: Fix PR c++/60052 and PR c++/60053. PR c++/60052 PR c++/60053

[Bug c++/60052] [c++1y] ICE with auto as member function parameter

2014-02-20 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60052 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Fri Feb 21 07:47:55 2014 New Revision: 207980 URL: http://gcc.gnu.org/viewcvs?rev=207980&root=gcc&view=rev Log: Fix PR c++/60052 and PR c++/60053. PR c++/60052 PR c++/60053

[Bug c++/60312] [4.9 Regression] [c++1y] ICE using auto as template parameter

2014-02-24 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60312 Adam Butcher changed: What|Removed |Added CC||abutcher at gcc dot gnu.org --- Comment

[Bug c++/60312] [4.9 Regression] [c++1y] ICE using auto as template parameter

2014-02-24 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60312 --- Comment #5 from Adam Butcher --- Actually strike that, my [local] changes relating to PR c++/60065 (http://gcc.gnu.org/ml/gcc-patches/2014-02/msg01437.html) seem to have changed the behavior.

[Bug c++/60065] [c++1y] ICE with auto parameter pack

2014-02-24 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60065 --- Comment #3 from Adam Butcher --- Author: abutcher Date: Tue Feb 25 03:47:24 2014 New Revision: 208106 URL: http://gcc.gnu.org/viewcvs?rev=208106&root=gcc&view=rev Log: Fix PR c++/60065. PR c++/60065 * parser.c (cp_parser_direct_decla

[Bug c++/60311] [c++1y] ICE with pointer-to-function with auto parameter

2014-02-24 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60311 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Tue Feb 25 06:44:53 2014 New Revision: 208111 URL: http://gcc.gnu.org/viewcvs?rev=208111&root=gcc&view=rev Log: Fix PR c++/60311. PR c++/60311 * parser.c (function_being_declare

[Bug c++/60377] [c++1y] ICE with invalid function parameter in conjunction with auto parameter

2014-03-01 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60377 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Sat Mar 1 21:28:18 2014 New Revision: 208250 URL: http://gcc.gnu.org/viewcvs?rev=208250&root=gcc&view=rev Log: Fix PR c++/60377. PR c++/60377 * parser.c (cp_parser_parameter_de

[Bug c++/60033] [c++1y] ICE in retrieve_specialization while compiling recursive generic lambda

2014-03-02 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60033 --- Comment #6 from Adam Butcher --- A further reduced testcase: // PR c++/60033 // { dg-options -std=c++1y } template auto f(T&&... ts) { return sizeof...(ts); } template auto g(T&&... ts) { return [&] (int v) { return f(ts...); };

[Bug c++/60033] [c++1y] ICE in retrieve_specialization while compiling recursive generic lambda

2014-03-02 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60033 --- Comment #7 from Adam Butcher --- (In reply to Adam Butcher from comment #6) > return [&] (int v) { > return f(ts...); > }; Should have been: return [&] (auto v) { return f(ts...); }; The 'int' version works as expected.

[Bug c++/60393] [c++1y] ICE with with invalid functions with auto parameters

2014-03-08 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60393 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Sat Mar 8 09:33:03 2014 New Revision: 208426 URL: http://gcc.gnu.org/viewcvs?rev=208426&root=gcc&view=rev Log: Fix PR c++/60393 PR c++/60393 * parser.c (cp_parser_parameter_dec

[Bug c++/60033] [c++1y] ICE in retrieve_specialization while compiling recursive generic lambda

2014-03-08 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60033 --- Comment #8 from Adam Butcher --- Author: abutcher Date: Sat Mar 8 09:33:12 2014 New Revision: 208427 URL: http://gcc.gnu.org/viewcvs?rev=208427&root=gcc&view=rev Log: Fix PR c++/60033 PR c++/60033 * pt.c (tsubst_copy): When retrievi

[Bug c++/60033] [c++1y] ICE in retrieve_specialization while compiling recursive generic lambda

2014-03-08 Thread abutcher at gcc dot gnu.org
|--- |FIXED Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org Target Milestone|--- |4.9.0 --- Comment #9 from Adam Butcher --- Fixed in 4.9.

[Bug c++/60393] [c++1y] ICE with with invalid functions with auto parameters

2014-03-08 Thread abutcher at gcc dot gnu.org
|--- |FIXED Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org Target Milestone|--- |4.9.0 --- Comment #2 from Adam Butcher --- Fixed in 4.9.

[Bug c++/60391] [c++1y] ICE with auto parameter for operator""

2014-03-15 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60391 Adam Butcher changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org

[Bug c++/60391] [c++1y] ICE with auto parameter for operator""

2014-03-15 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60391 Adam Butcher changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/60390] [c++1y] ICE with declaring function with auto parameter as friend

2014-03-15 Thread abutcher at gcc dot gnu.org
||2014-03-15 Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org Target Milestone|--- |4.9.0 Ever confirmed|0 |1

[Bug c++/60390] [c++1y] ICE with declaring function with auto parameter as friend

2014-03-17 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60390 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Mon Mar 17 20:02:26 2014 New Revision: 208625 URL: http://gcc.gnu.org/viewcvs?rev=208625&root=gcc&view=rev Log: Fix PR c++/60390 PR c++/60390 * parser.c (cp_parser_member_declar

[Bug c++/60391] [c++1y] ICE with auto parameter for operator""

2014-03-17 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60391 --- Comment #1 from Adam Butcher --- Author: abutcher Date: Mon Mar 17 20:02:16 2014 New Revision: 208624 URL: http://gcc.gnu.org/viewcvs?rev=208624&root=gcc&view=rev Log: Fix PR c++/60391 PR c++/60391 * parser.c (cp_parser_skip_to_end_o

[Bug c++/60391] [c++1y] ICE with auto parameter for operator""

2014-03-17 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60391 Adam Butcher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/60390] [c++1y] ICE with declaring function with auto parameter as friend

2014-03-17 Thread abutcher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60390 Adam Butcher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/64382] ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template

2015-03-09 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64382 Adam Butcher changed: What|Removed |Added CC||abutcher at gcc dot gnu.org --- Comment

[Bug c++/64382] ICE due to use of `this` inside a lambda that captures everything by ref inside a member function of a class template

2015-03-09 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64382 Adam Butcher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/61636] generic lambda "cannot call member function without object"

2015-03-09 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Adam Butcher changed: What|Removed |Added CC||lh_mouse at 126 dot com --- Comment #11 f

[Bug c++/61636] generic lambda "cannot call member function without object"

2015-03-09 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #12 from Adam Butcher --- If the containing context is made a template (as per pr64382 and pr64466) or if the patch below is made to lambda.c, the synthesized default 'this' looks to get captured OK, but gimplification process crashes

[Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters

2014-06-26 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537 --- Comment #9 from Adam Butcher --- Author: abutcher Date: Thu Jun 26 18:33:57 2014 New Revision: 212045 URL: https://gcc.gnu.org/viewcvs?rev=212045&root=gcc&view=rev Log: Fix PR c++/61537 * parser.c (cp_parser_elaborated_type_specifier):

[Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters

2014-06-26 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537 --- Comment #10 from Adam Butcher --- Fixed in 4.9.1

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-06 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 Adam Butcher changed: What|Removed |Added CC|adam at jessamine dot co.uk|abutcher at gcc dot gnu.org

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-06 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #5 from Adam Butcher --- In an attempt to get a reduced testcase, I've uncovered an ICE. With the extra "this->" qualification on the reference to 'f' below, the code compiles fine. Alternatively, if 'this' is explicitly captured, t

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-06 Thread abutcher at gcc dot gnu.org
||2014-07-06 Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #6 from Adam Butcher --- Reduced testcase: struct X { template void f(T t) {} auto defer_f

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-07 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #8 from Adam Butcher --- (In reply to tower120 from comment #7) > I'm not sure what you mean, about adding "this->". > I meant spelling "fn1(data)" as "this->fn1(data)" to explicitly specify the subject of the member call. > But th

[Bug c++/61636] generic lambda "cannot call member function without object"

2014-07-07 Thread abutcher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636 --- Comment #9 from Adam Butcher --- (In reply to Adam Butcher from comment #8) > There are no overloads of 'fn1' that can accept a 'B'. > Oops, sorry. I meant to say that there are no overloads of 'fn1' that can accept an 'A'. Clearly a 'B' ma