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++/15083] [3.4/3.5 Regression]spurious "statement has no effect" warning


------- 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


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