activemq-cpp build fails with gcc 4.7
-------------------------------------
Key: AMQCPP-389
URL: https://issues.apache.org/jira/browse/AMQCPP-389
Project: ActiveMQ C++ Client
Issue Type: Bug
Affects Versions: 3.4.1
Environment: Fedora 17, gcc 4.7.0
Reporter: Steve Traylen
Assignee: Timothy Bish
Building
activemq-cpp-library-3.4.1-src.tar.gz
with
gcc-c++ 4.7.0
results in
{noforamt}
./decaf/util/AbstractQueue.h:63:13: error: 'offer' was not declared in this
scope, and no declarations were found by argument-dependent lookup at the point
of instantiation [-fpermissive]
./decaf/util/AbstractQueue.h:63:13: note: declarations in dependent base
'decaf::util::Queue<decaf::lang::Runnable*>' are not found by unqualified lookup
./decaf/util/AbstractQueue.h:63:13: note: use 'this->offer' instead
{noformat}
From: https://lists.fedoraproject.org/pipermail/devel/2011-December/160723.html
C++ lookup fixes, the C++ FE no longer performs an extra unqualified
lookup that it (incorrectly) performed in the past. In some cases the
diagnostics includes hints how to fix the bugs, for PR24163 the
diagnostics looks like:
error: 'something' was not declared in this scope, and no
declarations were found by argument-dependent lookup at
the point of instantiation [-fpermissive] note: declarations in
dependent base 'someclass<somearg>' are not found by unqualified lookup
note: use 'this->something' instead
http://gcc.gnu.org/PR24163
The trivial attached patch with solution recomended above corrects the
problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira