This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15083] [3.4/3.5 Regression]spurious "statement has no effect" warning
- 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: 6 May 2004 23:26:06 -0000
- Subject: [Bug c++/15083] [3.4/3.5 Regression]spurious "statement has no effect" warning
- References: <20040422232013.15083.carlton@bactrian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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