Bug #7959 2006-06-22 13:35

pako

"instantiated from" treated as compile error

Version 1.0 revision 2544 (2006-06-10 23:26:59) gcc 3.4.4 Windows/unicode

When a compiler produces the following output:

Network.cpp:96: instantiated from here

C:/Boost/include/boost-1_33_1/boost/archive/detail/oserializer.hpp:118: warning: unused parameter 'flags'

IDE displays 2 messages in the "Build messages" window:

1) Network.cpp 96 instantiated from here

this row uses red font color

2) C:/Boost/.... 196 warning: unused parameter 'flags'

this row uses blue font color

All the "instantiated from here" messages are treated as errors, even if they are describing a _warning_ location.

They cause the following problems:

a) when the build is complete incorrect summary information is displayed (for the above CodeBlocks will log "1 error, 1 warning" instead of "0 errors, 1 warning")

b) when I click build and run I get a message "build failed, continue launch" (but the build was successfull, since I got no real errors and the executable is present)

There are also some other minor inconveniences, like opening the first error in the editor, difficulties filtering out real errors (too many red rows in the build messages), etc.

Category
Application::WrongBehaviour
Group
 
Status
Closed
Close date
2007-03-14 09:21
Assigned to
mortenmacfly
mandrav 2006-09-08 11:41

Does this bug still persist?

none 2006-09-10 19:41

I haven't updated my C::B for a long time, so I don't know does it still persist.

To reproduce this bug try compiling a project with 2 files, and -Wall option set:

file main.cpp :

#include <iostream>

#include "foobar.h"

int main()

{

foo(12,13);

return 0;

}

file foobar.h :

template<class C>

void foo(int a, C b)

{

cout << a << endl;

}

mortenmacfly 2007-03-14 09:21

This bug is now fixed in HEAD.

Thank you for reporting it.