gcc-include fails on "In file included from ..."

Bug #814468 reported by longo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emacs23 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

for g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2, the complete line to be matched is something like

In file included from foo/main.cc:23:0:

gcc-include fails to extract the filename correctly, it includes the line number (the first number after the colon following the filename). The patch repairs that effect, allowing emacs to jump to the indicated position:

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: emacs 23.2+1-7ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
NonfreeKernelModules: fcpci
Architecture: amd64
Date: Fri Jul 22 09:50:45 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=de_DE:en
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: emacs23
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
longo (langen-langensoft) wrote :
Revision history for this message
longo (langen-langensoft) wrote :

There remained some issues with the TYPE to be deduced (error or warning) - this has been dropped completely now because there was nothing to match against. So I hope the attached patch really is useful now also for multiple-line output (in case I find one more trap it's not I shall provide another patch).

Revision history for this message
longo (langen-langensoft) wrote :

Here's the patch, produced with diff -u (as recommended)

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package emacs23 - 23.3+1-1ubuntu3

---------------
emacs23 (23.3+1-1ubuntu3) oneiric; urgency=low

  * Apply patch from longo resolving gcc-include's failure to
    properly extract the filename and to jump to line position.
    (LP: #814468)
 -- Daniel T Chen <email address hidden> Sun, 14 Aug 2011 10:33:32 -0400

Changed in emacs23 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.