This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6711: usage of typeof() generates internal error

>Number:         6711
>Category:       c++
>Synopsis:       usage of typeof()  generates internal error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 17 16:06:01 PDT 2002
>Release:        unknown-1.0
$ uname -a
CYGWIN_NT-5.0 OBLOMOW 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown

Administrator@OBLOMOW /cygdrive/c/tmp/New Folder
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.1/specs
Configured with: ../gcc-3.1/configure --program-suffix=-3.1 --enable-shared --enable-threads=win32 --enable-languages=c,
c++,objc,f77 --enable-win32-registry : (reconfigured) ../gcc-3.1/configure --prefix=/usr --program-suffix=-3.1 --enable-
shared --enable-threads=win32 --enable-languages=c,c++,objc,f77 --enable-win32-registry
Thread model: win32
gcc version 3.1
GCC doesn't recognize expressions of the form typeof()::type, and under certain circumstances it produces a request to submit a bug report. 
If the attachment '' is compiled with: 

 gcc -DA -c 

then this message: 
<quote> In function `int main()': `template<class _Category, class _Tp, class _Distance, class _Pointer,
   class _Reference> struct std::iterator' as declarator
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
If the attachment '' is compiled with: 

 gcc -DB -c 

then this message: In function `int main()': parse error before `=' token `it' undeclared (first use this function) (Each undeclared identifier is reported only once for each function it
   appears in.)

is generated. In the -DB case the "using namespace std;" statement is removed.

Content-Type: application/octet-stream; name=""
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=""


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]