public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37652] New: Bogus redeclaration warning for `friend __declspec(dllimport) int foo ()'
@ 2008-09-25 21:52 v dot haisman at sh dot cvut dot cz
2008-09-26 3:16 ` [Bug target/37652] " dannysmith at users dot sourceforge dot net
0 siblings, 1 reply; 2+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2008-09-25 21:52 UTC (permalink / raw)
To: gcc-bugs
__declspec(dllimport) int foo ();
struct S
{
friend __declspec(dllimport) int foo ();
};
This code gives me the following warning:
dllexport_test.cxx:5: warning: 'int foo()' redeclared without dllimport
attribute: previous dllimport ignored
I think it is bogus. I the code clearly declares the same thing in the friend
declaration.
The used GCC is:
amber2::wilx:~/tmp/log4cplus-svn> g++-4 -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /gnu/gcc/release/gcc4-4.3.2-1/src/gcc-4.3.2/configure
--srcdir=/gnu/gcc/release/gcc4-4.3.2-1/src/gcc-4.3.2 --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/sbin
--localstatedir=/var --sysconfdir=/etc --datadir=/usr/share
--infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr
--with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs
--with-slibdir=/usr/bin --libexecdir=/usr/lib --enable-static --enable-shared
--enable-shared-libgcc --enable-__cxa_atexit --with-gnu-ld --with-gnu-as
--with-dwarf2 --disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers
--enable-libjava --program-suffix=-4
Thread model: single
gcc version 4.3.2 20080827 (alpha-testing) 1 (GCC)
--
Summary: Bogus redeclaration warning for `friend
__declspec(dllimport) int foo ()'
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: v dot haisman at sh dot cvut dot cz
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37652
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/37652] Bogus redeclaration warning for `friend __declspec(dllimport) int foo ()'
2008-09-25 21:52 [Bug c++/37652] New: Bogus redeclaration warning for `friend __declspec(dllimport) int foo ()' v dot haisman at sh dot cvut dot cz
@ 2008-09-26 3:16 ` dannysmith at users dot sourceforge dot net
0 siblings, 0 replies; 2+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2008-09-26 3:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dannysmith at users dot sourceforge dot net 2008-09-26 03:15 -------
This is duplicate of 34749
*** This bug has been marked as a duplicate of 34749 ***
--
dannysmith at users dot sourceforge dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37652
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-26 3:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-25 21:52 [Bug c++/37652] New: Bogus redeclaration warning for `friend __declspec(dllimport) int foo ()' v dot haisman at sh dot cvut dot cz
2008-09-26 3:16 ` [Bug target/37652] " dannysmith at users dot sourceforge dot net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).