Miles Bader writes: > [In the following example, the compiler is "clang++" (I was trying out > clang) but both recent and old versions of "g++" show exactly the same > problem, so it's nothing to do with clang in particular.] > > The following is some compiler output: > > ---------------- > clang++ -DHAVE_CONFIG_H -I. -I/usr/include/libpng12 -pthread -I/usr/include/OpenEXR -I/usr/include/lua5.1 -O3 -fomit-frame-pointer -ffast-math -march=native -mfpmath=sse -g -std=c++98 -Wall -Wextra -pedantic-errors -fno-finite-math-only -MT envmap-light.o -MD -MP -MF .deps/envmap-light.Tpo -c -o envmap-light.o envmap-light.cc > In file included from envmap-light.cc:13: > In file included from ./scene.h:18: > ./surface.h:75:55: error: extra ';' inside a struct or union [-pedantic] > virtual Sampler *make_sampler () const { return 0; }; > ^ > ---------------- > > When I hit next-error, it should jump directly to the real error > ("./surface.h:..."), but instead it positions the cursor on the first > "error context line", ("In file included from envmap-light.cc:13:"), (This bug report unfortunately got no response at the time.) Are you still seeing this issue in mode recent Emacs versions? I tried putting the example output in a buffer and `M-x compilation-mode', and it looks to me like it was parsed correctly: