The code: void f(int i){} int main() { f(long(3)); f(long long(3)); } gets you
~/ootbc/asm$ g++ foo.cc foo.cc: In function `int main()': foo.cc:4: error: expected primary-expression before "long" -- Summary: fails to recognize cast to "long long" Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25721