public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4662: g++ recognize a c++ header file (.hpp) as c header file
@ 2002-01-27 17:03 rodrigc
0 siblings, 0 replies; 4+ messages in thread
From: rodrigc @ 2002-01-27 17:03 UTC (permalink / raw)
To: acss, gcc-bugs, gcc-prs, nobody
Synopsis: g++ recognize a c++ header file (.hpp) as c header file
State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Jan 27 17:03:52 2002
State-Changed-Why:
No feedback.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4662
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4662: g++ recognize a c++ header file (.hpp) as c header file
@ 2001-11-20 18:06 aoliva
0 siblings, 0 replies; 4+ messages in thread
From: aoliva @ 2001-11-20 18:06 UTC (permalink / raw)
To: acss, gcc-bugs, gcc-gnats, gcc-prs, nobody
Synopsis: g++ recognize a c++ header file (.hpp) as c header file
State-Changed-From-To: open->feedback
State-Changed-By: aoliva
State-Changed-When: Sun Nov 25 09:43:12 2001
State-Changed-Why:
How do you get GCC to find these headers? If you're using -isystem or something alike, be it in the command line or in the specs file, this will get GCC to handle the headers as C sources.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4662&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/4662: g++ recognize a c++ header file (.hpp) as c header file
@ 2001-11-20 18:06 aoliva
0 siblings, 0 replies; 4+ messages in thread
From: aoliva @ 2001-11-20 18:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4662; it has been noted by GNATS.
From: aoliva@gcc.gnu.org
To: acss@altavista.net, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/4662: g++ recognize a c++ header file (.hpp) as c header file
Date: 25 Nov 2001 17:43:12 -0000
Synopsis: g++ recognize a c++ header file (.hpp) as c header file
State-Changed-From-To: open->feedback
State-Changed-By: aoliva
State-Changed-When: Sun Nov 25 09:43:12 2001
State-Changed-Why:
How do you get GCC to find these headers? If you're using -isystem or something alike, be it in the command line or in the specs file, this will get GCC to handle the headers as C sources.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4662&database=gcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/4662: g++ recognize a c++ header file (.hpp) as c header file
@ 2001-10-25 16:26 acss
0 siblings, 0 replies; 4+ messages in thread
From: acss @ 2001-10-25 16:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 4662
>Category: c++
>Synopsis: g++ recognize a c++ header file (.hpp) as c header file
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 25 16:26:07 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: acss@altavista.net
>Release: gcc 3.0.1
>Organization:
>Environment:
Sun SPARC
Solaris 5.6
>Description:
We have the same problem reported on #3866, with the following addition:
C++ included headers, located outside current directory are evaluated as C headers.
If we include a .hpp file in a C++ source file (either with <> or "") and they are outside, we receive the lots of errors like:
In file included from smalldate.cpp:4:
/opt/tuxedo/include/smalldate.hpp:29: declaration of C function `const
middleware::smalldate middleware::operator-(const middleware::smalldate&,
int)' conflicts with
/opt/tuxedo/include/smalldate.hpp:27: previous declaration `const int
middleware::operator-(const middleware::smalldate&, const
middleware::smalldate&)' here
Actually, these are overloaded C++ functions ...
>How-To-Repeat:
cat> test.hpp
int test(int i);
int test(float f);
ctrl-D
mv test.hpp <somewhere on the C++ include path>
cat> test.cpp
#include <test.hpp>
int main() {
test(0);
}
ctrl-D
g++ -c test.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-01-28 1:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-27 17:03 c++/4662: g++ recognize a c++ header file (.hpp) as c header file rodrigc
-- strict thread matches above, loose matches on Subject: below --
2001-11-20 18:06 aoliva
2001-11-20 18:06 aoliva
2001-10-25 16:26 acss
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).