From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19816 invoked by alias); 8 Jan 2014 07:27:19 -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 19793 invoked by uid 48); 8 Jan 2014 07:27:14 -0000 From: "metherid at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/59717] New: better warning when using functions when including appropriate header files Date: Wed, 08 Jan 2014 07:27: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.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: metherid 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00731.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59717 Bug ID: 59717 Summary: better warning when using functions when including appropriate header files Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: metherid at gmail dot com Clang produces a better warning suggesting the appropriate header file comp= ared to GCC. Test program included $gcc testwarning.c=20 testwarning.c: In function =E2=80=98main=E2=80=99: testwarning.c:4:2: warning: incompatible implicit declaration of built-in function =E2=80=98strcpy=E2=80=99 [enabled by default] strcpy(teststr, "foo"); ^ rahul@mether ~/work> clang test testfor testfor.c testwarning.c=20=20 rahul@mether ~/work> clang testwarning.c=20 testwarning.c:4:2: warning: implicitly declaring library function 'strcpy' = with type 'char *(char *, const char *)' strcpy(teststr, "foo"); ^ testwarning.c:4:2: note: please include the header or explicitly provide a declaration for 'strcpy' --- cat testwarning.c=20 int main (void) { char *teststr; strcpy(teststr, "foo"); --- >>From gcc-bugs-return-439590-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jan 08 08:49:45 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23820 invoked by alias); 8 Jan 2014 08:49:44 -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 23785 invoked by uid 48); 8 Jan 2014 08:49:39 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/59712] unordered_map : clang fails with "member access into incomplete type" Date: Wed, 08 Jan 2014 08:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: 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_severity Message-ID: In-Reply-To: References: 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-01/txt/msg00732.txt.bz2 Content-length: 437 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59712 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal --- Comment #3 from Jonathan Wakely --- This is not Severity=major, libstdc++ is designed for use with GCC not Clang.