This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16883] New: Confusing error message with Boost.Spirit


The preprocessed source attacched with this report causes the following error 
message when compiled with 3.4:

/cygdrive/e/spirit/boost/spirit/phoenix/composite.hpp:281: error: return-stateme
nt with a value, in function returning 'void'

The error message is totally confusing, and has nothing to do with the real 
bug, which is a missing templated operator() (or so I am told, I have not 
analyzed it). I am also told the same error message appears with 3.3.

With Comeau, the error message is: "no instance of function template 
Test_Recipe_Grammar::lazy_attribute_filter_::operator() matches the argument 
list", which is the correct problem. The full error message can be seen here:
http://rafb.net/paste/results/IiYOX564.html.

This really needs a reduction to be properly analyzed.

-- 
           Summary: Confusing error message with Boost.Spirit
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16883


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]