http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51657
Bug #: 51657 Summary: bind1st multiplies a pointer Classification: Unclassified Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: giecr...@stegny.2a.pl Host: i586-suse-linux Target: i586-suse-linux Build: i586-suse-linux Created attachment 26167 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26167 Preprocessed source The following code multiplies a pointer by 2 with no warning: #include <iostream> int main (int, char *argv []) { ::std ::cout << ::std ::bind1st (::std ::multiplies < ptrdiff_t > (), argv) (02); } This code should not compile.