-
Notifications
You must be signed in to change notification settings - Fork 264
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
Compilation Error due to danling-reference warning with -Werror #7749
Labels
Comments
Getting something similar on Arch Linux (GCC 14.1.1 20240522) with the latest release (6.0.0):
The same error also occurs at:
More:
There are others but the error is pretty much the same every time. |
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 5, 2024
GCC 14 adds new warnings. Those are largely spurious (perhaps with exception of the interpreter code), but still require working around. These warnings also affect CaDiCaL builds, which in turn requires us to upgrade to version 2.0.0, where workarounds have been added. Fixes: diffblue#7749
3 tasks
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 5, 2024
GCC 14 adds new warnings. Those are largely spurious (perhaps with exception of the interpreter code and unit tests), but still require working around. These warnings also affect CaDiCaL builds, which in turn requires us to upgrade to version 2.0.0, where workarounds have been added. Fixes: diffblue#7749
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 5, 2024
GCC 14 adds new warnings. Those are largely spurious (perhaps with exception of the interpreter code and unit tests), but still require working around. These warnings also affect CaDiCaL builds, which in turn requires us to upgrade to version 2.0.0, where workarounds have been added. Fixes: diffblue#7749
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 5, 2024
GCC 14 adds new warnings. Those are largely spurious (perhaps with exception of the interpreter code and unit tests), but still require working around. These warnings also affect CaDiCaL builds, which in turn requires us to upgrade to version 2.0.0, where workarounds have been added. Fixes: diffblue#7749
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 5, 2024
GCC 14 adds new warnings. Those are largely spurious (perhaps with exception of the interpreter code and unit tests), but still require working around. These warnings also affect CaDiCaL builds, which in turn requires us to upgrade to version 2.0.0, where workarounds have been added. Fixes: diffblue#7749
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 5, 2024
GCC 14 adds new warnings. Those are largely spurious (perhaps with exception of the interpreter code and unit tests), but still require working around. These warnings also affect CaDiCaL builds, which in turn requires us to upgrade to version 2.0.0, where workarounds have been added. Fixes: diffblue#7749
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Jul 5, 2024
GCC 14 adds new warnings. Those are largely spurious (perhaps with exception of the interpreter code and unit tests), but still require working around. These warnings also affect CaDiCaL builds, which in turn requires us to upgrade to version 2.0.0, where workarounds have been added. Fixes: diffblue#7749
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pulling the develop branch and change into cbmc directory and executing the following commands:
I get the following errors:
.../cbmc/src/goto-symex/goto_symex.cpp:350:18: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 350 | const symbolt &return_symbol = get_fresh_aux_symbol( ...
and
.../cbmc/src/solvers/smt2/smt2_conv.cpp:998:37: error: possibly dangling reference to a temporary [-Werror=dangling-reference] 998 | for(auto ch : id2string(identifier))
I suspect these are not the only errors if I did not abort the compilation.
After adding "-Wno-dangling-reference" I got the following errors:
.../src/util/cmdline.h:75:16: error: ‘virtual bool cmdlinet::parse(int, const char**, const char*)’ was hidden [-Werror=overloaded-virtual=] 75 | virtual bool parse(int argc, const char **argv, const char *optstring);
Working with linux6.3-4-1 Manjaro and GCC 13.1.1
The text was updated successfully, but these errors were encountered: