[Bug c++/15083] [3.4/3.5 Regression]spurious "statement has no effect" warning
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 6 23:26:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-06 23:26 -------
Here is another case (dervided from this PR and PR 15333):
extern "C" int printf(const char*,...);
struct Counter {
Counter(){printf("Hello World.\n");}
};
template< typename T >
void resetData() {
new Counter();
}
int main() {
resetData<int>();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15083
More information about the Gcc-bugs
mailing list