Opened 14 years ago

Closed 13 years ago

#2561 closed defect (fixed)

VideoListImp uses meta_dir_node from anonymous namespace: violates ODR

Reported by: Axel.Thimm@… 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 Changed 14 years ago by Anduin Withers

(In [11552]) References #2561

That is right, naming an unnamed namespace is a bug workaround.

comment:2 Changed 14 years ago by Anduin Withers

(In [11553]) References #2561

Should fix build issues on x86_64

comment:3 Changed 13 years ago by Anduin Withers

Resolution: fixed
Status: newclosed

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.