[Bug c++/34749] Incorrect warning when applying dllimport to friend function

angry-kasyan at narod dot ru gcc-bugzilla@gcc.gnu.org
Tue Jan 13 08:12:00 GMT 2009



------- Comment #10 from angry-kasyan at narod dot ru  2009-01-13 08:12 -------
(In reply to comment #9)
> (In reply to comment #8)
> > still unfixed?
> 
> Please provide a compilable self-contained testcase. 
> Danny
> 

Here is compilable testcase:

## begin df.cpp
__attribute__((dllimport)) int bar();

class Foo
{
private:
    int foo();
    friend __attribute__((dllimport)) int bar();
};

int Foo::foo()
{
    return bar();
}
## end df.cpp

> g++ -S df.cpp


I don't see that patch in 4.3.2 or in the 4.3 branch. This is fixed in
mainline, so it'll appear in 4.4, I guess.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34749



More information about the Gcc-bugs mailing list