Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with GCC-15 (class Poco::PriorityDelegate<TObj, void, true>’ has no member named ‘_pTarget’) #4695

Closed
stkw0 opened this issue Sep 16, 2024 · 1 comment
Assignees

Comments

@stkw0
Copy link
Contributor

stkw0 commented Sep 16, 2024

Describe the bug
With GCC-15 Poco fails to build.

To Reproduce
Install GCC-15 pre-release or compile the latest GCC-15 from git and build Poco

Expected behavior
It builds correctly

Logs

/var/tmp/portage/dev-libs/poco-1.13.3/work/poco-poco-1.13.3-release/Foundation/include/Poco/PriorityDelegate.h: In member function ‘Poco::PriorityDelegate<TObj, void, true>& Poco::PriorityDelegate<TObj, void, true>::operator=(const Poco::PriorityDelegate<TObj, void, true>&)’:
/var/tmp/portage/dev-libs/poco-1.13.3/work/poco-poco-1.13.3-release/Foundation/include/Poco/PriorityDelegate.h:203:31: error: ‘class Poco::PriorityDelegate<TObj, void, true>’ has no member named ‘_pTarget’ [-Wtemplate-body]
  203 |                         this->_pTarget        = delegate._pTarget;
      |                               ^~~~~~~~
/var/tmp/portage/dev-libs/poco-1.13.3/work/poco-poco-1.13.3-release/Foundation/include/Poco/PriorityDelegate.h:203:58: error: ‘const class Poco::PriorityDelegate<TObj, void, true>’ has no member named ‘_pTarget’ [-Wtemplate-body]
  203 |                         this->_pTarget        = delegate._pTarget;
      |                                                          ^~~~~~~~
/var/tmp/portage/dev-libs/poco-1.13.3/work/poco-poco-1.13.3-release/Foundation/include/Poco/PriorityDelegate.h: In member function ‘Poco::PriorityDelegate<TObj, void, false>& Poco::PriorityDelegate<TObj, void, false>::operator=(const Poco::PriorityDelegate<TObj, void, false>&)’:
/var/tmp/portage/dev-libs/poco-1.13.3/work/poco-poco-1.13.3-release/Foundation/include/Poco/PriorityDelegate.h:277:31: error: ‘class Poco::PriorityDelegate<TObj, void, false>’ has no member named ‘_pTarget’ [-Wtemplate-body]
  277 |                         this->_pTarget        = delegate._pTarget;
      |                               ^~~~~~~~
/var/tmp/portage/dev-libs/poco-1.13.3/work/poco-poco-1.13.3-release/Foundation/include/Poco/PriorityDelegate.h:277:58: error: ‘const class Poco::PriorityDelegate<TObj, void, false>’ has no member named ‘_pTarget’ [-Wtemplate-body]
  277 |                         this->_pTarget        = delegate._pTarget;
      |                                                          ^~~~~~~

Screenshots
NA

Please add relevant environment information:
Linux 6.10.9
Poco 1.13.3

Additional context

@stkw0 stkw0 added the bug label Sep 16, 2024
@matejk matejk changed the title Build error with GCC-15 Build error with GCC-15 (class Poco::PriorityDelegate<TObj, void, true>’ has no member named ‘_pTarget’) Sep 22, 2024
@matejk
Copy link
Contributor

matejk commented Sep 23, 2024

I might have missed something, but I am not sure why it works on other compilers since the member is obviously missing.

@obiltschnig obiltschnig self-assigned this Sep 27, 2024
@obiltschnig obiltschnig added this to 1.14 Sep 27, 2024
@obiltschnig obiltschnig added this to the Release 1.14.0 milestone Sep 27, 2024
@obiltschnig obiltschnig moved this to In Progress in 1.14 Sep 27, 2024
obiltschnig added a commit that referenced this issue Sep 27, 2024
…e<TObj, void, true>’ has no member named ‘_pTarget’) (#4695)
@matejk matejk moved this from In Progress to Done in 1.14 Oct 10, 2024
@matejk matejk closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants