From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24658 invoked by alias); 2 Jun 2014 08:07:43 -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 24627 invoked by uid 48); 2 Jun 2014 08:07:39 -0000 From: "akim.demaille at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/61386] New: inaccurate location for missing headers Date: Mon, 02 Jun 2014 08:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: akim.demaille 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-06/txt/msg00034.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61386 Bug ID: 61386 Summary: inaccurate location for missing headers Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: akim.demaille at gmail dot com Hi, This is cosmetic only, but the error message for missing headers provides a location is past the error. akim@erebus /tmp $ g++-mp-4.9 foo.cc foo.cc:2:20: fatal error: stexcept: No such file or directory #include ^ compilation terminated. Fwiw, clang's location is more alike what I expect: akim@erebus /tmp $ clang++-mp-3.5 foo.cc foo.cc:2:10: fatal error: 'stexcept' file not found #include ^ 1 error generated.