public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16883] New: Confusing error message with Boost.Spirit
@ 2004-08-04 23:20 giovannibajo at libero dot it
2004-08-04 23:25 ` [Bug c++/16883] " giovannibajo at libero dot it
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: giovannibajo at libero dot it @ 2004-08-04 23:20 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/16883] Confusing error message with Boost.Spirit
2004-08-04 23:20 [Bug c++/16883] New: Confusing error message with Boost.Spirit giovannibajo at libero dot it
@ 2004-08-04 23:25 ` giovannibajo at libero dot it
2004-08-05 1:56 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: giovannibajo at libero dot it @ 2004-08-04 23:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-08-04 23:25 -------
Created an attachment (id=6884)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6884&action=view)
Comeau error message
Attacching Comeau error message, since the link above is going to expire soon.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16883
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/16883] Confusing error message with Boost.Spirit
2004-08-04 23:20 [Bug c++/16883] New: Confusing error message with Boost.Spirit giovannibajo at libero dot it
2004-08-04 23:25 ` [Bug c++/16883] " giovannibajo at libero dot it
@ 2004-08-05 1:56 ` pinskia at gcc dot gnu dot org
2004-08-05 2:03 ` pinskia at gcc dot gnu dot org
2004-08-05 3:05 ` cohen at rafb dot net
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-05 1:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-05 01:56 -------
I get this error first:
pr16883.cc:50489: error: no match for call to `(Test_Recipe_Grammar::lazy_attribute_filter_)
(__gnu_norm::map<uint32_t, std::pair<std::string, std::string>, std::less<uint32_t>,
std::allocator<std::pair<const uint32_t, std::pair<std::string, std::string> > > >&, const
std::pair<std::string, std::string>&)'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16883
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/16883] Confusing error message with Boost.Spirit
2004-08-04 23:20 [Bug c++/16883] New: Confusing error message with Boost.Spirit giovannibajo at libero dot it
2004-08-04 23:25 ` [Bug c++/16883] " giovannibajo at libero dot it
2004-08-05 1:56 ` pinskia at gcc dot gnu dot org
@ 2004-08-05 2:03 ` pinskia at gcc dot gnu dot org
2004-08-05 3:05 ` cohen at rafb dot net
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-05 2:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-05 02:03 -------
So it looks like the person is looking at the last error message rather than the first.
The reason for the error message which we output also comes from:
int f();
template <class T> T g(T *a){return f(a);}
void h(){g<void>(0);}
Which is correct because there is no f which has a return type of void. so closing as invalid.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16883
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/16883] Confusing error message with Boost.Spirit
2004-08-04 23:20 [Bug c++/16883] New: Confusing error message with Boost.Spirit giovannibajo at libero dot it
` (2 preceding siblings ...)
2004-08-05 2:03 ` pinskia at gcc dot gnu dot org
@ 2004-08-05 3:05 ` cohen at rafb dot net
3 siblings, 0 replies; 5+ messages in thread
From: cohen at rafb dot net @ 2004-08-05 3:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cohen at rafb dot net 2004-08-05 03:05 -------
Hi,
Rafb.Net's code pasting service is designed to automatically delete pasted code
after 24 hours. I've extracted this particular paste into a more permanent URL:
http://www.rafb.net/gnu_16883.html
Regards,
Jake.(In reply to comment #0)
> http://rafb.net/paste/results/IiYOX564.html.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16883
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-05 3:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-04 23:20 [Bug c++/16883] New: Confusing error message with Boost.Spirit giovannibajo at libero dot it
2004-08-04 23:25 ` [Bug c++/16883] " giovannibajo at libero dot it
2004-08-05 1:56 ` pinskia at gcc dot gnu dot org
2004-08-05 2:03 ` pinskia at gcc dot gnu dot org
2004-08-05 3:05 ` cohen at rafb dot net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).