------- Additional Comments From bangerth at dealii dot org 2005-02-08 20:13
-------
This is somewhat shorter, though maybe not much:
--------------------
#include <cstring>
#include <set>
struct ltstr {
bool operator()(const char* s1, const char* s2) const
{ return strcmp(s1, s2) < 0; }
};
int main(){
char* tab_tmp[2] = { "1", "2"};
const static std::set<const char*,ltstr>
codon_table1 (tab_tmp, tab_tmp+2);
*codon_table1.find("1");
}
-----------------------
tmp/xxx> c++ x.cc -O2 -finline-functions -finline-limit=603 && ./a.out
tmp/xxx> c++ x.cc -O2 -finline-functions -finline-limit=604 && ./a.out
Segmentation fault
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2005-02-08 20:13:47
date| |
Summary|[4.0 Regression] gcc 4.0 |[4.0 Regression] wrong code
|regression: bad code |with -finline-limit
|generation?? due to |
|inlining?? |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19813