[Bug 25942] New: Wine's implementation of d3dtypes.h does not work with ISO C++.
http://bugs.winehq.org/show_bug.cgi?id=25942 Summary: Wine's implementation of d3dtypes.h does not work with ISO C++. Product: Wine Version: 1.3.11 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs(a)winehq.org ReportedBy: dscharrer(a)gmail.com The implementation of d3dtypes.h shipped with wine defines operator() in D3MATRIX as follows: /* This is different from MS, but avoids anonymous structs. */ D3DVALUE &operator () (int r, int c) { return ((D3DVALUE [4][4])&_11)[r][c]; } const D3DVALUE &operator() (int r, int c) const { return ((const D3DVALUE [4][4])&_11)[r][c]; } Compiling a C++ winelib program which includes d3d.h using wineg++, without -fpermissive and with D3D_OVERLOADS defined, results in a compile error, as "/nemyax/apps/wine/1.3.12/include/wine/windows/d3dtypes.h:339: error: ISO C++ forbids casting to an array type ‘D3DVALUE [4][4]’". -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=25942 --- Comment #1 from Erik Lund <culex.eriklund(a)gmail.com> 2011-01-31 15:30:29 CST --- Created an attachment (id=33076) --> (http://bugs.winehq.org/attachment.cgi?id=33076) Testcase for d3dtypes.h C++ compatibility Small testcase used to show this problem. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=25942 Erik Lund <culex.eriklund(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |culex.eriklund(a)gmail.com --- Comment #2 from Erik Lund <culex.eriklund(a)gmail.com> 2011-01-31 15:32:22 CST --- I can confirm this problem using GCC 4.5.1 and Wine 1.2.1. See this attachment( http://bugs.winehq.org/attachment.cgi?id=33076 ) for the testcase that can identify it. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=25942 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=25942 Daniel Scharrer <dscharrer(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|1.3.11 |1.3.18 --- Comment #3 from Daniel Scharrer <dscharrer(a)gmail.com> 2011-04-27 10:33:16 CDT --- Bumping wine version to 1.3.18 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=25942 Ken Sharp <kennybobs(a)o2.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|1.3.18 |1.3.11 --- Comment #4 from Ken Sharp <kennybobs(a)o2.co.uk> 2011-04-27 10:51:10 CDT --- Don't change the Wine version! -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=25942 Daniel Scharrer <dscharrer(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #5 from Daniel Scharrer <dscharrer(a)gmail.com> 2011-06-03 16:54:54 CDT --- This has been fixed in commit 5deab783e2a18fa2819d99e7ba3b197a189bb3b4 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=25942 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> 2011-06-10 13:16:40 CDT --- Closing bugs fixed in 1.3.22. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org