From: SourceForge.net <no...@so...> - 2003-03-18 13:52:28
|
Bugs item #705588, was opened at 2003-03-18 07:20 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=705588&group_id=2435 Category: gcc Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael D. Stemle, Jr. (mikes1024) Assigned to: Danny Smith (dannysmith) Summary: Internal compiler error: rest_of_compilation Initial Comment: Hey. I got a nasty one for you. Sorry Wayne! Compiler log: Compiler: Default compiler Building Makefile: "C:\Documents and Settings\Michael\Desktop\Devel\pud_win32 \Makefile.win" Executing make clean rm -f Comment.o PudConfig.o puddll.o PudElements.o PudException.o PudGlobal.o PudGlobalConfig.o PudString.o Style.o Template.o pud_private.res pud.dll g++.exe -c Comment.cpp -o Comment.o -I"C:/Dev- Cpp/include/c++" -I"C:/Dev-Cpp/include" -I"C:/Dev- C++/include" -I"C:/Dev-C++/include/c++" -I"C:/Dev- C++/include/c++/mingw32" -I"C:/Dev- C++/include/c++/backward" -ansi -traditional-cpp g++.exe -c PudConfig.cpp -o PudConfig.o -I"C:/Dev- Cpp/include/c++" -I"C:/Dev-Cpp/include" -I"C:/Dev- C++/include" -I"C:/Dev-C++/include/c++" -I"C:/Dev- C++/include/c++/mingw32" -I"C:/Dev- C++/include/c++/backward" -ansi -traditional-cpp g++.exe -c puddll.cpp -o puddll.o -I"C:/Dev- Cpp/include/c++" -I"C:/Dev-Cpp/include" -I"C:/Dev- C++/include" -I"C:/Dev-C++/include/c++" -I"C:/Dev- C++/include/c++/mingw32" -I"C:/Dev- C++/include/c++/backward" -ansi -traditional-cpp g++.exe -c PudElements.cpp -o PudElements.o - I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include" - I"C:/Dev-C++/include" -I"C:/Dev-C++/include/c++" - I"C:/Dev-C++/include/c++/mingw32" -I"C:/Dev- C++/include/c++/backward" -ansi -traditional-cpp PudElements.cpp: In static member function `static void Pud::PudElements::underlineString(const char*, Pud::PudString&)': PudElements.cpp:197: Internal compiler error in rest_of_compilation, at toplev.c:3491 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make.exe: *** [PudElements.o] Error 1 Execution terminated Code: // PudElements.cpp: implementation of the PudElements class. // ////////////////////////////////////////////////////////////////////// #include <ctime> #include "PudElements.h" using namespace std; // Define constants... const char Pud::PudElements::TOKEN_AUTHOR[7] = "AUTHOR"; const char Pud::PudElements::TOKEN_EMAIL[6] = "EMAIL"; const char Pud::PudElements::TOKEN_FILE[5] = "FILE"; const char Pud::PudElements::TOKEN_PACKAGE[8] = "PACKAGE"; const char Pud::PudElements::TOKEN_VERSION_NUMBER[15] = "VERSION_NUMBER"; const char Pud::PudElements::TOKEN_TEMPLATE[9] = "TEMPLATE"; const char Pud::PudElements::TOKEN_YEAR[5] = "YEAR"; // Underline tokens const char Pud::PudElements::UNDERLINE_FILE[15] = "UNDERLINE_FILE"; const char Pud::PudElements::UNDERLINE_AUTHOR [17] = "UNDERLINE_AUTHOR"; const char Pud::PudElements::UNDERLINE_EMAIL[16] = "UNDERLINE_EMAI"; const char Pud::PudElements::UNDERLINE_PACKAGE [18] = "UNDERLINE_PACKAGE"; const char Pud::PudElements::UNDERLINE_VERSION_NUMBER [25] = "UNDERLINE_VERSION_NUMBER"; int Pud::PudElements::tplpos = 0; int Pud::PudElements::tpllen = 0; // All tokens array const char* Pud::PudElements::ALL_TOKENS[13] = { (const char *) Pud::PudElements::TOKEN_AUTHOR, (const char *) Pud::PudElements::TOKEN_EMAIL, (const char *) Pud::PudElements::TOKEN_FILE, (const char *) Pud::PudElements::TOKEN_PACKAGE, (const char *) Pud::PudElements::TOKEN_TEMPLATE, (const char *) Pud::PudElements::TOKEN_VERSION_NUMBER, (const char *) Pud::PudElements::UNDERLINE_AUTHOR, (const char *) Pud::PudElements::UNDERLINE_EMAIL, (const char *) Pud::PudElements::UNDERLINE_FILE, (const char *) Pud::PudElements::UNDERLINE_PACKAGE, (const char *) Pud::PudElements::UNDERLINE_VERSION_NUMBER, (const char *) NULL }; // Define the mappings... struct token_map Pud::PudElements::ALL_TOKEN_MAPPINGS[13] = { {UNDERLINE_AUTHOR, TokenFuncs::tf_und_author}, {UNDERLINE_EMAIL, TokenFuncs::tf_und_email}, {UNDERLINE_FILE, TokenFuncs::tf_und_file}, {UNDERLINE_PACKAGE, TokenFuncs::tf_und_package}, {UNDERLINE_VERSION_NUMBER, TokenFuncs::tf_und_version_number}, {TOKEN_AUTHOR, TokenFuncs::tf_author}, {TOKEN_EMAIL, TokenFuncs::tf_email}, {TOKEN_FILE, TokenFuncs::tf_file}, {TOKEN_PACKAGE, TokenFuncs::tf_package}, {TOKEN_TEMPLATE, TokenFuncs::tf_template}, {TOKEN_VERSION_NUMBER, TokenFuncs::tf_version_number}, {TOKEN_YEAR, TokenFuncs::tf_year}, {NULL, NULL} // NULL terminator for ease of use in loops... }; // Token functions token_func TokenFuncs::tf_author (Pud::PudConfig * obj) { return obj->getCopyrightHolder (); } token_func TokenFuncs::tf_email (Pud::PudConfig * obj) { return obj->getEmailAddress (); } token_func TokenFuncs::tf_file (Pud::PudConfig * obj) { return obj->getFileName (); } token_func TokenFuncs::tf_package (Pud::PudConfig * obj) { return obj->getPackage (); } token_func TokenFuncs::tf_template (Pud::PudConfig * obj) { Pud::PudElements::tplpos = -1; Pud::PudElements::tpllen = strlen ("TEMPLATEHERE"); return "TEMPLATEHERE"; } token_func TokenFuncs::tf_version_number (Pud::PudConfig * obj) { return obj->getVersionNumber (); } token_func TokenFuncs::tf_und_author (Pud::PudConfig * obj) { Pud::PudString u; Pud::PudElements::underlineString (GETPUDSTRING (obj->getCopyrightHolder ()), u); return u; } token_func TokenFuncs::tf_und_email (Pud::PudConfig * obj) { Pud::PudString u; Pud::PudElements::underlineString (GETPUDSTRING (obj->getEmailAddress ()), u); return u; } token_func TokenFuncs::tf_und_file (Pud::PudConfig * obj) { Pud::PudString u; Pud::PudElements::underlineString (GETPUDSTRING (obj->getFileName ()), u); return u; } token_func TokenFuncs::tf_und_package (Pud::PudConfig * obj) { Pud::PudString u; Pud::PudElements::underlineString (GETPUDSTRING (obj->getPackage ()), u); return u; } token_func TokenFuncs::tf_und_version_number (Pud::PudConfig * obj) { Pud::PudString u; Pud::PudElements::underlineString (GETPUDSTRING (obj->getVersionNumber ()), u); return u; } token_func TokenFuncs::tf_year (Pud::PudConfig * obj) { time_t clock = std::time ((time_t *) NULL); struct tm *cal= localtime ((const time_t *) &clock); Pud::PudString u; char ystr[8] = ""; // 8 characters to allow for more centuries (I doubt this code will be around in that many years) sprintf (ystr, "%d", cal->tm_year + 1900); u = ystr; return u; } ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// using namespace Pud; PudElements::PudElements (void) { config = (Pud::PudConfig *) NULL; global = (Pud::PudGlobalConfig *) NULL; return; } PudElements::PudElements (Pud::PudConfig * c, Pud::PudGlobalConfig * g) { config = c; global = g; return; } PudElements::~PudElements (void) { config = (Pud::PudConfig *) NULL; global = (Pud::PudGlobalConfig *) NULL; return; } void PudElements::setConfig (Pud::PudConfig * c) { config = c; return; } Pud::PudConfig * PudElements::getConfig (void) { return config; } void PudElements::setGlobalConfig (Pud::PudGlobalConfig * g) { global = g; return; } Pud::PudGlobalConfig * PudElements::getGlobalConfig (void) { return global; } void PudElements::underlineString (const char *str, Pud::PudString &underline) { char *sptr = (char *) NULL; for (sptr = (char *) str; *sptr != '\0'; sptr++) { underline += "-"; } underline += "--"; return; } ---------------------------------------------------------------------- >Comment By: Michael D. Stemle, Jr. (mikes1024) Date: 2003-03-18 08:04 Message: Logged In: YES user_id=51188 Using Dev-C++ 4.9.7.8. Not sure what version of MinGW it's using. I have the latest release of that though. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2003-03-18 07:38 Message: Logged In: YES user_id=15438 What versions of GCC? binutils? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=705588&group_id=2435 |