[Bug c++/90711] Failing SFINAE from unrelated struct

2019-06-02 Thread da_cra_hunt at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90711 --- Comment #1 from David Hunt --- Self-contained : --- namespace test { void EXISTS(int); } template struct stub_void { typedef void type; }; template using stub_void_t = typename stub_void::type; #if !defined(SUPPRESS) template struct

[Bug c++/90711] New: Failing SFINAE from unrelated struct

2019-06-02 Thread da_cra_hunt at yahoo dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: da_cra_hunt at yahoo dot com Target Milestone: --- Created attachment 46443 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46443&action=edit Temporary from error case I've run into a strange situation where

[Bug c++/35989] code rejected in template specialization (4.2 did accept)

2009-07-23 Thread da_cra_hunt at yahoo dot com
--- Comment #3 from da_cra_hunt at yahoo dot com 2009-07-23 17:34 --- Simple case : template struct A {}; template struct B { struct Inner {}; }; template struct A::Inner> {}; 4.1.2/VS2005 compile quietly. 4.3.2 (g++ -c test.cpp) gives : kk.cpp:5: error: template parameters