public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: John Blinka <jblinka@neo.rr.com>
To: paolo@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: libstdc++/6720: compile error using stl extensions
Date: Mon, 20 May 2002 05:06:00 -0000	[thread overview]
Message-ID: <20020520120604.5331.qmail@sources.redhat.com> (raw)

The following reply was made to PR libstdc++/6720; it has been noted by GNATS.

From: John Blinka <jblinka@neo.rr.com>
To: paolo@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
   nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/6720: compile error using stl extensions
Date: Mon, 20 May 2002 08:05:17 -0400

 paolo@gcc.gnu.org wrote:
 > 
 > Synopsis: compile error using stl extensions
 > 
 > Responsible-Changed-From-To: unassigned->paolo
 > Responsible-Changed-By: paolo
 > Responsible-Changed-When: Sun May 19 07:56:59 2002
 > Responsible-Changed-Why:
 >     Triaged.
 > State-Changed-From-To: open->feedback
 > State-Changed-By: paolo
 > State-Changed-When: Sun May 19 07:56:59 2002
 > State-Changed-Why:
 >     Does changing -I to -idirafter solve the problem for you? E.g.:
 >     g++ -o a -idirafter/usr/local/lang/gcc/include/g++-v3/ext a.cc
 
 Yes. -dirafter solves the problem (in all the cases I reported).  Thanks
 for the "fix".
 
 > 
 >     Thanks for your report, Paolo.
 > 
 >     P.S. Notice that, from the manual: "... It is dangerous to specify a standard system include directory in -I option. This defeats the special treatment of system headers."
 
 Thanks for pointing this out.  This appears to be a change from
 gcc-3.0.4 to gcc-3.1.
 I gather that this new interpretation is required by the current manner
 in which
 gcc-3.1 fixes system headers.  But it introduces an awkward status for
 the stl
 extension classes.  There are 2 manifestations of this awkwardness:
 
 1)  One can include them with
 
     #include <ext/extension_class>
 
     and compile without using either -I or -idirafter, or
 
 2)  When using a header defined by the C++ standard and an extension
 class, one can include
     them with
 
     #include <C++ standard class>
     #include <extension_class>
 
     and use -idirafter/path_to_stl_extension_classes, and make sure
 *not* to use
     -I/path_to_stl_extension_classes.
 
 The #include <ext/extension class> solution gives the stl extension
 classes a
 special status - they're the only classes which need a relative path in
 #include.
 The -idirafter solution (and the failure of the -I solution) rubs
 against decades
 of use of -I to solve such problems.  The problem is that the stl
 extension classes
 are located in a "standard system include directory" but the system
 doesn't look
 in that directory!   Why not?
 
 Thanks for your help and your gentle recommendation to read the manual.
 
 John Blinka


             reply	other threads:[~2002-05-20 12:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-20  5:06 John Blinka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-31 13:18 paolo
2002-05-20 10:56 Gabriel Dos Reis
2002-05-20 10:56 Phil Edwards
2002-05-19  7:57 paolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020520120604.5331.qmail@sources.redhat.com \
    --to=jblinka@neo.rr.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=paolo@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).