Git Product home page Git Product logo

Comments (2)

kupsch avatar kupsch commented on June 7, 2024

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.

kupsch avatar kupsch commented on June 7, 2024

RELEASE build on fedora 38 using g++ version 13 and C++20 builds without warning.

from dyninst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.