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
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
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
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
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)
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
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
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
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() & ;
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
10 matches
Mail list logo