GCC关于模板的bug?

Views :
Update time : 2025-06-28 08:15:15

前一阵发现 GCC 一个 bug, 提交到了 gcc bugzilla ,已被确认,当然,这个 bug 有点刁钻:struct A { struct B {}; struct C { template void foo1(B*); template void foo2(B*) {} // ok }; template void foo1(B*); template void foo2(B*) {} // ok }; template void A::C::foo1(B*) {} // (1). fail template void A::foo1(B*) {} // (2). fail(1) (2) 两处都是合法…。

GCC关于模板的bug?
Related News
Read More >>
Blog Post With Youtube Video 如何评价前端框架SolidJS?
2025-06-25 03:00:15
如何评价前端框架SolidJS?...
Blog Post With Youtube Video 大一计算机新生怎么合理利用github?
2025-06-25 03:50:14
大一计算机新生怎么合理利用github?...
Blog Post With Youtube Video 为什么 Golang 不适合开发桌面系统?
2025-06-25 03:10:15
为什么 Golang 不适合开发桌面系统?...
Blog Post With Youtube Video 男朋友说我穿衣服太开放,难道好身材不应该显示出来吗?
2025-06-25 02:35:15
男朋友说我穿衣服太开放,难道好身材不应该显示出来吗?...

Leave Your Message