public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/96746] Type Casting in template function should not be type-dependent if the type of the conversion result is not type-dependent.
Date: Wed, 04 Nov 2020 15:41:11 +0000	[thread overview]
Message-ID: <bug-96746-4-nOw2qaRW5o@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-96746-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
What Marek explained is that your testcase is buggy, but it may or may not be
diagnosed, unless the template is instantiated.  If you instantiate such
template, it has to be rejected by all implementations, but when only
performing semantic analysis of uninstantiated templates, different
implementations will report different sets of bugs, some are easier to diagnose
in some implementations, others in different ones.

  parent reply	other threads:[~2020-11-04 15:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-22 16:04 [Bug c++/96746] New: " masamitsu.murase at gmail dot com
2020-08-24 23:24 ` [Bug c++/96746] " mpolacek at gcc dot gnu.org
2020-11-04 15:21 ` masamitsu.murase at gmail dot com
2020-11-04 15:37 ` redi at gcc dot gnu.org
2020-11-04 15:41 ` jakub at gcc dot gnu.org [this message]
2021-01-01 14:22 ` masamitsu.murase at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-96746-4-nOw2qaRW5o@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).