From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32605 invoked by alias); 5 Dec 2014 15:12:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32591 invoked by uid 48); 5 Dec 2014 15:12:09 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/64194] New: [C++14] for function template with auto return Date: Fri, 05 Dec 2014 15:12: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: 5.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg00562.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64194 Bug ID: 64194 Summary: [C++14] 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 auto id() { } template void g(T) { } int main() { // id; g(id); } G++ fails to resolve id in the call. over.cc: In function =E2=80=98int main()=E2=80=99: over.cc:8:14: error: no matching function for call to =E2=80=98g()=E2=80=99 g(id); ^ over.cc:3:28: note: candidate: template void g(T) template void g(T) { } ^ over.cc:3:28: note: template argument deduction/substitution failed: over.cc:8:14: note: couldn't deduce template parameter =E2=80=98T=E2=80=99 g(id); ^ It works if the reference to id is uncommented, or if auto id() is cha= nged 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: 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: List-Archive: List-Post: List-Help: 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" 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: 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?id=64195 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)"