[Bug c++/71784] New: crash on on ref-qual's and templates

2016-07-06 Thread mct_ancs at yahoo dot com
nt: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mct_ancs at yahoo dot com Target Milestone: --- Created attachment 38844 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38844&action=edit *.cc on ref-qual's and templates see file

[Bug c++/71784] crash on on ref-qual's and templates

2016-07-07 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #2 from Ela --- Created attachment 38848 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38848&action=edit *.cc file producing the crash

[Bug c++/71784] crash on on ref-qual's and templates

2016-07-07 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #3 from Ela --- Created attachment 38849 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38849&action=edit the compiler complaint

[Bug c++/71784] crash on on ref-qual's and templates

2016-07-07 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #4 from Ela --- Created attachment 38850 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38850&action=edit code dump

[Bug c++/71784] crash on on ref-qual's and templates

2016-07-07 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #5 from Ela --- gcc = gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)

[Bug c++/71784] crash on on ref-qual's and templates

2016-07-07 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #6 from Ela --- - ... it doesn't matter (or it does ?) if op's are first instantiated via template, or everything is in one file and instantiated "per-need" when they appear (used). (tested various versions and cannot remember

[Bug c++/71784] [6/7 Regression] ICE on invalid code in push_access_scope, at cp/pt.c:229

2016-07-08 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #8 from Ela --- (In reply to Martin Liška from comment #7) > Same as the origin, it's obviously an invalid code. Tested on all Clang-3.8 C++11,14,17 - it works. gcc-6.1.0 is a bit more explicit in some sense: - class instant

[Bug c++/71784] [6/7 Regression] ICE on invalid code in push_access_scope, at cp/pt.c:229

2016-07-08 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #9 from Ela --- (In reply to Ela from comment #8) > (In reply to Martin Liška from comment #7) > > > Same as the origin, it's obviously an invalid code. > > Tested on all Clang-3.8 C++11,14,17 - it works. > > gcc-6.1.0 is a bit

[Bug c++/71784] [6/7 Regression] ICE on invalid code in push_access_scope, at cp/pt.c:229

2016-07-08 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #10 from Ela --- > ... actually I made it simpler, in order to get to > the root of it: > > --- CORRECTION - #include using std::cout; #include template class A{ public: void f() & ;

[Bug c++/71784] [4.9/5/6/7 Regression] ICE on invalid code in push_access_scope, at cp/pt.c:229

2016-07-11 Thread mct_ancs at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71784 --- Comment #12 from Ela --- Example: When an usual member function is missing (say template class instantiated with extern), the compiler (4.9.3, 6.1) will complain in_clear about the missing function. When a ref-qual'ed one is missing