This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15119] New: internal compiler error: in substitute_placeholder_in_expr, at tree.c:2155


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]