public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/45523] [C++0x] Failure to bind auto variable to function template instance
Date: Fri, 03 Sep 2010 19:02:00 -0000 [thread overview]
Message-ID: <20100903190227.5821.qmail@sourceware.org> (raw)
In-Reply-To: <bug-45523-19244@http.gcc.gnu.org/bugzilla/>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]
------- Comment #3 from pinskia at gmail dot com 2010-09-03 19:02 -------
Subject: Re: New: Failure to bind auto variable to function template instance
I think there is a dup of this bug without auto. Not to mention it was
defect report against the standard.
On Sep 3, 2010, at 10:07 AM, "jewillco at osl dot iu dot edu"
<gcc-bugzilla@gcc.gnu.org
> wrote:
> The following code:
>
> template <typename T> void foo();
> void f() {auto g = foo<int>;}
>
> fails to compile in GCC 4.5.0's C++0x mode with the following error:
>
> foo.cpp: In function âvoid f()â:
> foo.cpp:2:20: error: âgâ has incomplete type
>
> Trying different variants of this code, it appears that GCC believes
> that
> foo<int> is an ambiguous overloaded function, while there is only
> one matching
> function.
>
>
> --
> Summary: Failure to bind auto variable to function template
> instance
> Product: gcc
> Version: 4.5.0
> Status: UNCONFIRMED
> Severity: normal
> Priority: P3
> Component: c++
> AssignedTo: unassigned at gcc dot gnu dot org
> ReportedBy: jewillco at osl dot iu dot edu
> GCC build triplet: x86_64-unknown-linux-gnu
> GCC host triplet: x86_64-unknown-linux-gnu
> GCC target triplet: x86_64-unknown-linux-gnu
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45523
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45523
next prev parent reply other threads:[~2010-09-03 19:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 17:07 [Bug c++/45523] New: " jewillco at osl dot iu dot edu
2010-09-03 17:09 ` [Bug c++/45523] " jewillco at osl dot iu dot edu
2010-09-03 17:11 ` [Bug c++/45523] [C++0x] " paolo dot carlini at oracle dot com
2010-09-03 19:02 ` [Bug c++/45523] New: " Andrew Pinski
2010-09-03 19:02 ` pinskia at gmail dot com [this message]
2010-09-03 19:29 ` [Bug c++/45523] [C++0x] " jewillco at osl dot iu dot edu
2010-09-07 2:17 ` redi at gcc dot gnu dot org
[not found] <bug-45523-4@http.gcc.gnu.org/bugzilla/>
2011-05-25 13:36 ` jason at gcc dot gnu.org
2011-05-25 13:59 ` paolo.carlini at oracle 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=20100903190227.5821.qmail@sourceware.org \
--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).