public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/71369] Compile failure about template function call operator
       [not found] <bug-71369-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-08  3:27 ` pinskia at gcc dot gnu.org
  2021-12-08  3:29 ` [Bug c++/71369] Error message is confusing when missing template keyword with operator() pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-08  3:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71369

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang's error message is better:
<source>:9:10: error: missing 'template' keyword prior to dependent template
name 'operator()'
        functor.operator()<t>();
                ^         ~~~

We might have a dup of this one already even.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/71369] Error message is confusing when missing template keyword with operator().
       [not found] <bug-71369-4@http.gcc.gnu.org/bugzilla/>
  2021-12-08  3:27 ` [Bug c++/71369] Compile failure about template function call operator pinskia at gcc dot gnu.org
@ 2021-12-08  3:29 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-08  3:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71369

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-12-08
            Summary|Compile failure about       |Error message is confusing
                   |template function call      |when missing template
                   |operator                    |keyword with operator().
             Status|UNCONFIRMED                 |NEW

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed for the error message being confusing. I thought we had a dup but I
can't find it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-08  3:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-71369-4@http.gcc.gnu.org/bugzilla/>
2021-12-08  3:27 ` [Bug c++/71369] Compile failure about template function call operator pinskia at gcc dot gnu.org
2021-12-08  3:29 ` [Bug c++/71369] Error message is confusing when missing template keyword with operator() pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).