[Bug c++/66519] [C++14] ICE when using decltype to detect callable return type during SFINAE

2020-04-16 Thread asolokha at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66519

Arseny Solokha  changed:

   What|Removed |Added

 CC||asolokha at gmx dot com

--- Comment #4 from Arseny Solokha  ---
g++ 9.2 ICEs w/ reduced testcase, but g++ 9.3 and g++-10.0.1-alpha20200412
snapshot (g:87be4cecfc6e42390303be1ca92bc8bc587b0bd6) both compile it now.

[Bug c++/66519] [C++14] ICE when using decltype to detect callable return type during SFINAE

2019-06-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66519

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #3 from Marek Polacek  ---
Still ICEs with gcc version 10.0.0 20190608 (experimental) (GCC)

[Bug c++/66519] [C++14] ICE when using decltype to detect callable return type during SFINAE

2016-06-29 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66519

Markus Trippelsdorf  changed:

   What|Removed |Added

 CC||trippels at gcc dot gnu.org

--- Comment #2 from Markus Trippelsdorf  ---
Confirmed.
It is a stack overflow caused by endless recursion:

#0  ggc_internal_alloc (size=size@entry=40, f=f@entry=0x0, s=s@entry=0,
n=n@entry=1) at ../../gcc/gcc/ggc-page.c:1389
#1  0x00fe8810 in ggc_internal_alloc (s=40) at ../../gcc/gcc/ggc.h:134
#2  ggc_alloc_tree_node_stat (s=40) at ../../gcc/gcc/ggc.h:286
#3  tree_cons_stat (purpose=purpose@entry=0x771f3c78, value=0x77201348,
chain=chain@entry=0x0) at ../../gcc/gcc/tree.c:2905
#4  0x006c193f in tsubst_pack_expansion (t=0x771f3d20,
args=args@entry=0x772002d0, complain=complain@entry=0,
in_decl=in_decl@entry=0x771f7080)
at ../../gcc/gcc/cp/pt.c:11015
#5  0x006bdad2 in tsubst_decl (t=t@entry=0x771f7080,
args=args@entry=0x772002d0, complain=complain@entry=0) at
../../gcc/gcc/cp/pt.c:12048
#6  0x006c1842 in tsubst_pack_expansion (t=0x770a3540,
args=args@entry=0x772002d0, complain=complain@entry=0,
in_decl=in_decl@entry=0x771f7100)
at ../../gcc/gcc/cp/pt.c:10953
#7  0x006b11f0 in tsubst_copy_and_build (t=0x770af0e0,
args=args@entry=0x772002d0, complain=0,
in_decl=in_decl@entry=0x771f7100, 
function_p=function_p@entry=false,
integral_constant_expression_p=integral_constant_expression_p@entry=false) at
../../gcc/gcc/cp/pt.c:16554
#8  0x006b3e3a in tsubst (t=, args=0x772002d0,
complain=0, in_decl=0x771f7100) at ../../gcc/gcc/cp/pt.c:13588
#9  0x006bcc45 in tsubst_decl (t=0x771f7100, args=,
complain=complain@entry=0) at ../../gcc/gcc/cp/pt.c:12092
#10 0x006b49d8 in tsubst (t=0x771f7100, args=0x772002d0,
complain=0, in_decl=0x771f7100) at ../../gcc/gcc/cp/pt.c:12874
#11 0x006be82e in tsubst_decl (t=t@entry=0x771f7080,
args=args@entry=0x772002d0, complain=complain@entry=0) at
../../gcc/gcc/cp/pt.c:12057
#12 0x006c1842 in tsubst_pack_expansion (t=0x770a3540,
args=args@entry=0x772002d0, complain=complain@entry=0,
in_decl=in_decl@entry=0x771f7100)
at ../../gcc/gcc/cp/pt.c:10953
#13 0x006b11f0 in tsubst_copy_and_build (t=0x770af0e0,
args=args@entry=0x772002d0, complain=0,
in_decl=in_decl@entry=0x771f7100, 
function_p=function_p@entry=false,
integral_constant_expression_p=integral_constant_expression_p@entry=false) at
../../gcc/gcc/cp/pt.c:16554
#14 0x006b3e3a in tsubst (t=, args=0x772002d0,
complain=0, in_decl=0x771f7100) at ../../gcc/gcc/cp/pt.c:13588
#15 0x006bcc45 in tsubst_decl (t=0x771f7100, args=,
complain=complain@entry=0) at ../../gcc/gcc/cp/pt.c:12092
#16 0x006b49d8 in tsubst (t=0x771f7100, args=0x772002d0,
complain=0, in_decl=0x771f7100) at ../../gcc/gcc/cp/pt.c:12874
#17 0x006be82e in tsubst_decl (t=t@entry=0x771f7080,
args=args@entry=0x772002d0, complain=complain@entry=0) at
../../gcc/gcc/cp/pt.c:12057
#18 0x006c1842 in tsubst_pack_expansion (t=0x770a3540,
args=args@entry=0x772002d0, complain=complain@entry=0,
in_decl=in_decl@entry=0x771f7100)
at ../../gcc/gcc/cp/pt.c:10953
...

[Bug c++/66519] [C++14] ICE when using decltype to detect callable return type during SFINAE

2016-06-29 Thread krzysztof.sinica at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66519

--- Comment #1 from Krzysztof Sinica  ---
Created attachment 38796
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38796=edit
Reduced repro.

[Bug c++/66519] [C++14] ICE when using decltype to detect callable return type during SFINAE

2015-06-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66519

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-06-12
 Ever confirmed|0   |1
  Known to fail||4.8.3, 4.9.2, 5.1.0, 6.0