note generating in case of type confliction

2013-07-18 Thread Klin Iop
Hello, I'm mostly new to gcc, so I don't really have a real idea how notes are generated. More exactly I would like to know, how types are compared during compilation, and what makes the compiler decide to throw a message in case they aren't equal. There is this message "note: expected `type` b

Re: note generating in case of type confliction

2013-07-21 Thread Klin Iop
Yes, you're right. The actual message is "expected %qT but argument is of type %qT" (found in c- typeck.c line: 4039), where tree-types are compared (tree type with tree rhstype).  Sorry for the mistake and thank you.  Von: Jonathan Wakely An