Bug #17844 2011-01-07 08:44

ondra_holub

Parsing of compiler messages reporting line and column

GCC can report some warnings in a way

filename:line:column message

For example D:\src\main.cpp:292:1: instantiated from 'bla bla'

Such warning is not correctly parsed, because column number is considered to be line number. I suggest to modify compiler settings for gcc this way:

- Go to Settings -> Compiler and debugger

- Select other settings

- select advanced options

- select output parsing

- add new parsing expression before 3rd one named 'Instantiated from' info with regular expression ([][{}() \t#%$~A-Za-z0-9_:+/\.-]+):([0-9]+):([0-9]+):[ \t]+([iI]nstantiated from .*)

- set it to be Info

- set subexpression indices to Message=3, Additional message2 = 4, Additional message3 = 0, Filename = 1 and Line = 2

This should work for both cases - when columns are or are not reported in warning. Both cases must be supported, because this warning reporting may be switched on or off by parameters.

There may be other messages with same problem, although I did not find them till now.

Category
Compiler
Group
 
Status
Open
Close date
 
Assigned to
 
ollydbg 2011-01-12 01:20

I just test the steps you give, but it seems I still get the "warning" message if I just past a log like below:

F:\cb\test_code\testwx\testwxMain.cpp:95:7: warning: 'i' may be used uninitialized in this function

I think we can discuss this on the Codeblocks forum, can you post a message here?

http://forums.codeblocks.org/index.php

ollydbg 2011-01-12 01:25

Oh, just notice that this is a reg specific for "instantiated from" kind warning??

am I right??