public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: c++/178
Date: Sun, 13 May 2001 18:16:00 -0000	[thread overview]
Message-ID: <20010514011601.21403.qmail@sourceware.cygnus.com> (raw)

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

From: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/178
Date: Mon, 14 May 2001 04:13:06 +0200 (CEST)

 I narrowed the test case down to the following source code tsound.C. It is
 obvious that this code is ill formed. Removing the enum keyword makes
 the code legal, the internal compiler error does no longer occur.     
 
 Hope this helps,
 Peter Schmid
 
 Source code tsound.C
 struct Sound
 {
     typedef unsigned int Frequency;
     Frequency frequency;
     Frequency getFrequency();
 };
 
 enum Sound::Frequency Sound::getFrequency()
 {
  return(this->frequency);
 }
 
 gcc 3.1 (I have no gcc 3.0 with checking enabled handy)
 g++ -v -c tsound.C -W -Wall
 Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
 Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-long-long --enable-languages=c,c++,f77,objc
 Thread model: posix
 gcc version 3.1 20010512 (experimental)
  /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -W -Wall -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ tsound.C -D__GNUG__=3 -D_GNU_SOURCE -D__DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase tsound.C -W -Wall -version -o /tmp/ccXgchAF.s
 GNU CPP version 3.1 20010512 (experimental) (cpplib) (i386 Linux/ELF)
 GNU C++ version 3.1 20010512 (experimental) (i686-pc-linux-gnu)
 	compiled by GNU C version 3.1 20010512 (experimental).
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/local/include/g++-v3
  /usr/local/include/g++-v3/i686-pc-linux-gnu
  /usr/local/include/g++-v3/backward
  /usr/local/include
  /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.1/include
  /usr/local/i686-pc-linux-gnu/include
  /usr/include
 End of search list.
 tsound.C:8: Tree check: expected identifier_node, have type_decl in lookup_tag, 
    at cp/decl.c:5311
 Please submit a full bug report, with preprocessed source if appropriate.
 See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
 
 gcc 2.95.2
 /usr/bin/g++ -c -v tsound.C
 Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs
 gcc version 2.95.2 19991024 (release)
  /usr/lib/gcc-lib/i486-suse-linux/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di486 -D__i486 -D__i486__ tsound.C /tmp/ccQZgu5r.ii
 GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/include/g++
  /usr/local/include
  /usr/lib/gcc-lib/i486-suse-linux/2.95.2/include
  /usr/include
 End of search list.
 The following default directories have been omitted from the search path:
  /usr/lib/gcc-lib/i486-suse-linux/2.95.2/../../../../i486-suse-linux/include
 End of omitted list.
  /usr/lib/gcc-lib/i486-suse-linux/2.95.2/cc1plus /tmp/ccQZgu5r.ii -quiet -dumpbase tsound.cc -version -o /tmp/ccU7qGCL.s
 GNU C++ version 2.95.2 19991024 (release) (i486-suse-linux) compiled by GNU C version 2.95.2 19991024 (release).
 tsound.C:8: Internal compiler error.
 tsound.C:8: Please submit a full bug report.
 tsound.C:8: See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
 


             reply	other threads:[~2001-05-13 18:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-13 18:16 Peter Schmid [this message]
2001-05-26  1:46 c++/178 lerdsuwa

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=20010514011601.21403.qmail@sourceware.cygnus.com \
    --to=schmid@snake.iap.physik.tu-darmstadt.de \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@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).