public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64194] New: [C++14] <unresolved overloaded function type> for function template with auto return
Date: Fri, 05 Dec 2014 15:12:00 -0000 [thread overview]
Message-ID: <bug-64194-4@http.gcc.gnu.org/bugzilla/> (raw)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64194
Bug ID: 64194
Summary: [C++14] <unresolved overloaded function type> for
function template with auto return
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
template <typename Tp> auto id() { }
template <typename T> void g(T) { }
int main()
{
// id<int>;
g(id<int>);
}
G++ fails to resolve id<int> in the call.
over.cc: In function ‘int main()’:
over.cc:8:14: error: no matching function for call to ‘g(<unresolved overloaded
function type>)’
g(id<int>);
^
over.cc:3:28: note: candidate: template<class T> void g(T)
template <typename T> void g(T) { }
^
over.cc:3:28: note: template argument deduction/substitution failed:
over.cc:8:14: note: couldn't deduce template parameter ‘T’
g(id<int>);
^
It works if the reference to id<int> is uncommented, or if auto id() is changed
to void id()
>From gcc-bugs-return-469556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Dec 05 15:39:53 2014
Return-Path: <gcc-bugs-return-469556-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16157 invoked by alias); 5 Dec 2014 15:39:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16117 invoked by uid 48); 5 Dec 2014 15:39:46 -0000
From: "bep684 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64195] New: type_traits.h: is_trivially_copyable unimplemented
Date: Fri, 05 Dec 2014 15:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: bep684 at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-64195-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-12/txt/msg00563.txt.bz2
Content-length: 645
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd195
Bug ID: 64195
Summary: type_traits.h: is_trivially_copyable unimplemented
Product: gcc
Version: 4.9.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bep684 at gmail dot com
Attempting to use std::is_trivially_copyable results in the following error at
compile-time:
"error: 'is_trivially_copyable' is not a member of 'std'"
Found the following line in type_traits.h:
"// is_trivially_copyable (still unimplemented)"
next reply other threads:[~2014-12-05 15:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 15:12 redi at gcc dot gnu.org [this message]
2014-12-08 17:52 ` [Bug c++/64194] " ville.voutilainen at gmail dot com
2020-07-29 12:57 ` ppalka at gcc dot gnu.org
2020-07-29 12:57 ` ppalka at gcc dot gnu.org
2020-07-30 2:15 ` cvs-commit at gcc dot gnu.org
2020-08-03 14:51 ` ppalka at gcc dot gnu.org
2020-09-02 16:33 ` redi at gcc dot gnu.org
2020-11-10 13:24 ` redi at gcc dot gnu.org
2020-12-08 10:32 ` redi at gcc dot gnu.org
2020-12-08 22:44 ` jason at gcc dot gnu.org
2020-12-10 14:25 ` cvs-commit at gcc dot gnu.org
2021-01-18 4:08 ` ppalka at gcc dot gnu.org
2021-03-08 10:08 ` redi at gcc dot gnu.org
2021-04-21 12:25 ` cvs-commit at gcc dot gnu.org
2021-07-27 7:14 ` pinskia at gcc dot gnu.org
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-64194-4@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).