[Bug c++/54813] New: NULL pointer conversion fails for template code

2012-10-04 Thread tjablin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54813 Bug #: 54813 Summary: NULL pointer conversion fails for template code Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal

[Bug c++/54813] NULL pointer conversion fails for template code

2012-10-04 Thread tjablin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54813 --- Comment #1 from tjablin at gmail dot com 2012-10-04 16:41:06 UTC --- I have further simplified the testcase as follows: templateclass T static void bar(T, char[][sizeof(T)]) {} void baz() { barint(0, 0); // succeeds