gcc-include fails on "In file included from ..."
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
ProcVersionSign
Uname: Linux 2.6.38-10-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Fri Jul 22 09:50:45 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426)
PackageArchitec
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)
tags: | added: patch |
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).