Opened 20 years ago
Closed 18 years ago
#2561 closed defect (fixed)
VideoListImp uses meta_dir_node from anonymous namespace: violates ODR
| Reported by: | Owned by: | Anduin Withers | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythvideo | Version: | 0.20 |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
After the latest gcc in FC6 not building mythplugins anymore on x86_64 I filed a bug against redhat.com.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=210129
Since VideoListImp is referenced in VideoList (and videolist.h) it is used in more than one translation unit anonymous namespaces are private per unit.
Change History (3)
comment:1 by , 20 years ago
comment:3 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29365 seems to back my "this isn't an ODR violation" argument. On 4.1.2 it builds and links with fake_unname removed, not much of a victory as I can't remove the workaround.
Note:
See TracTickets
for help on using tickets.

(In [11552]) References #2561
That is right, naming an unnamed namespace is a bug workaround.