This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/43905] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2010 02:08:44 -0000
- Subject: [Bug tree-optimization/43905] duplicate __PRETTY_FUNCTION__ symbol for functions differing in const-ness
- References: <bug-43905-19092@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-27 02:08 -------
Very reduced testcase:
extern void sf ( __const char *);
struct Matrix{
int operator[](int n){
sf ( __PRETTY_FUNCTION__);
}
int operator[](int n)const{
sf ( __PRETTY_FUNCTION__);
}
};
void calcmy(Matrix const &b, Matrix &c, int k){
b[k];
c[k];
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |assemble-failure, wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2010-04-27 02:08:44
date| |
Target Milestone|--- |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43905