https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95029
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95029
--- Comment #3 from Andrew Pinski ---
> PacketFragmenting frag(MaxPacketSize(MAX_PACKET_SIZE), PhySize(PHY_SIZE));
I was going to say this defines a function, frag which takes MaxPacketSize and
PhySize as arguments and returns PacketFragmenting
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95029
--- Comment #2 from Maximilian Matthe ---
Unfortunately, this seems to be a hard-to-spot case of the most vexing parse
(just tried with clang, whose warning pointed me into that direction).
https://www.fluentcpp.com/2018/01/30/most-vexing-parse
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95029
--- Comment #1 from Maximilian Matthe ---
Created attachment 48495
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48495&action=edit
The corresponding .ii-file