Closed GoogleCodeExporter closed 9 years ago
Are you sure it's a false negative?
It is essentially the same as "plugin registration" scheme, where plugin in
each module registers itself within a global register. Order of registration is
undefined, but the result is always the same -- all plugins are registered.
Original comment by dvyu...@google.com
on 18 Sep 2013 at 4:20
Replace int with int* and you will or will not get segmentation fault depending
on the order of global constructors, so this pattern can easily lead to the
actual bugs. I also agree there is a perfectly legal code that uses this
pattern, like the one you mentioned. Can we distiguish between them?
Original comment by samso...@google.com
on 19 Sep 2013 at 1:53
I do not see any way to do it.
Original comment by dvyu...@google.com
on 19 Sep 2013 at 5:16
Original comment by samso...@google.com
on 8 May 2014 at 11:31
Original issue reported on code.google.com by
samso...@google.com
on 18 Sep 2013 at 4:06