Comments (2)
Yes, I'd say it's a compiler bug. Without -Werror
there are 14 of these. They all involve a std::string
operation that has a char *
literal argument. There are 3 at lines 154, 161, and 162 of the files parseAPI/src/ProbabilisticParser.C below. Not clear why 156 didn't trigger the problem, but most the c-string literals that trigger the warning are small (1 maybe 2 bytes plus the NULL). Most of the warnings are of the form of lines 161 and 162 where the string literal is passed as the lhs and a std::string as the rhs to std::string::operator+
.
151 string IdiomTerm::human_format() const {
152 string entryname;
153 if(*this == WILDCARD_TERM)
154 entryname = "*";
155 else if(entryNames_IAPI.find((entryID)(entry_id)) == entryNames_IAPI.end() ) {
156 entryname = "[UNMAPED]";
157 fprintf(stderr, "Found entryID not mapped in entryNames_IAPI %d\n", en try_id);
158 }
159 else {
160 entryname = entryNames_IAPI[(entryID)(entry_id)];
161 if (arg1 != NOARG) entryname += " " + HandleAnOperand(arg1, 1);
162 if (arg2 != NOARG) entryname += "," + HandleAnOperand(arg2, 1);
163 }
164
165 return entryname;
166
167 }
from dyninst.
RELEASE build on fedora 38 using g++ version 13 and C++20 builds without warning.
from dyninst.
Related Issues (20)
- Stack frame size exceeded when building with clang-15
- Dyninst instrumentation breaks C++ exception handling on Linux
- parseapi misses function entry with vzeroupper in libmkl_avx512.so.2 HOT 2
- How to assign/replace value to some variable
- FTBFS git-master on fedora rawhide f39 with gcc 13.1.1 HOT 2
- Potential Infinite Loop in emitElf.C HOT 1
- Locking around Symtab::mod_lookup HOT 3
- how to instrument an user-defined function? HOT 4
- symtab doesn't understand dwarf inline from clang 14 HOT 1
- x86_64 'ret near' instruction formats incorrectly
- Fix x86_64 instruction formatting for >2 operands
- Intel X86_64 operand formatting is incorrect
- formatting x86_64 instruction incorrectly makes kN registers masks in some cases
- Symtab reads wrong debug inline info for Intel EM_INTELGT GPU binary HOT 12
- Dyninst doesn't continue parsing AMDGPU code after a procedure call
- `FunctionBase::getInlines()` Assertion fails for Fortran binary build HOT 3
- Unable to read all instructions of elf format HOT 12
- RoseOperation::extractOP dealt incorrectly
- Rose logicalNot implemented as 1's complement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dyninst.