public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "simon-pfahler at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/109942] Function template declared extern is implicitly instantiated on -O optimization level when return type is auto
Date: Tue, 23 May 2023 13:40:28 +0000	[thread overview]
Message-ID: <bug-109942-4-vfyq5cnLFz@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-109942-4@http.gcc.gnu.org/bugzilla/>

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

Simon Pfahler <simon-pfahler at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Simon Pfahler <simon-pfahler at gmx dot de> ---
I see your point, and have realized that there is no way around explicitly
stating the return types. That was wishful thinking on my part.

Still, I feel like the behavior should be identical for any optimization level,
but this is more personal opinion and of little relevance for
standard-compliance.

Marked this issue as resolved, since even if it is a bug (as you said,
debatable), it certainly isn't a relevant one.

      parent reply	other threads:[~2023-05-23 13:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-23 12:39 [Bug c++/109942] New: " simon-pfahler at gmx dot de
2023-05-23 13:30 ` [Bug c++/109942] " redi at gcc dot gnu.org
2023-05-23 13:35 ` redi at gcc dot gnu.org
2023-05-23 13:40 ` simon-pfahler at gmx dot de [this message]

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-109942-4-vfyq5cnLFz@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).