[Bug c++/15119] New: internal compiler error: in substitute_placeholder_in_expr, at tree.c:2155
wanderer at rsu dot ru
gcc-bugzilla@gcc.gnu.org
Sat Apr 24 18:55:00 GMT 2004
Current mainline CVS g++ ICE at testcase with error:
---8X---------------------------
make, ~/work/cpp/Test > g++ test.cc -save-temps
test.cc: In function `int main()':
test.cc:16: internal compiler error: in substitute_placeholder_in_expr, at
tree.c:2155
Please submit a full bug report,
---X8---------------------------
testcase:
---8X---------------------------
#include <cstdio>
#include <string>
char const* descs[] = {
"Test0: %s.",
"Test1: %s.",
"Test2: %s.",
"Test3: %s.",
"Test4: %s.",
};
int main() {
int t = 1;
char buf[100];
std::string str = "String";
sprintf( buf, descs[ std::min(t-1,4) ], str.c_str() );
return 0;
}
---X8---------------------------
--
Summary: internal compiler error: in
substitute_placeholder_in_expr, at tree.c:2155
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: wanderer at rsu dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-unknown-freebsd5.1
GCC host triplet: i386-unknown-freebsd5.1
GCC target triplet: i386-unknown-freebsd5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15119
More information about the Gcc-bugs
mailing list