public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3944: Template and using directive
@ 2003-01-01 14:50 neroden
  0 siblings, 0 replies; 3+ messages in thread
From: neroden @ 2003-01-01 14:50 UTC (permalink / raw)
  To: fasbjx, gcc-bugs, gcc-prs, nobody

Synopsis: Template and using directive

State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Wed Jan  1 06:50:48 2003
State-Changed-Why:
    No longer ICEs.  Even if I add the missing bracket after namespace N.  (Without the bracket, actually, I get the rather odd errors:
    ice.cxx:3: error: expected `='
    ice.cxx:3: error: expected identifier
    ice.cxx:3: error: expected `;'
    ice.cxx:3: error: unknown namespace `<declaration error>'
    ice.cxx:8: error: expected declaration
    
    -- why did it expect an = sign rather than a bracket ?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3944


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/3944: Template and using directive
@ 2001-08-05  1:22 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2001-08-05  1:22 UTC (permalink / raw)
  To: fasbjx, gcc-bugs, gcc-prs, nobody

Synopsis: Template and using directive

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Aug  5 01:22:37 2001
State-Changed-Why:
    Confirm as a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3944&database=gcc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c++/3944: Template and using directive
@ 2001-08-04 20:56 fasbjx, Branjonneau
  0 siblings, 0 replies; 3+ messages in thread
From: fasbjx, Branjonneau @ 2001-08-04 20:56 UTC (permalink / raw)
  To: gcc-gnats, debian-gcc

>Number:         3944
>Category:       c++
>Synopsis:       Template and using directive
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 04 20:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Franck Branjonneau
>Release:        3.0 (Debian) (Debian testing/unstable)
>Organization:
>Environment:
System: Linux alpha.tchume.net 2.4.4 #2 mar mai 22 08:16:07 CEST 2001 i586 unknown
Architecture: i586

	
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-x --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
The following code:

namespace N

  struct Y {
    template< int >
    void f() {}
  };

}

struct X: N::Y {

  template< int x >
  using N::Y::f< x >;

};

gives, from codesourcery:

GCC Output


These are the results of processing your source code with the following command:

    g++ [input] 

Exit code: 256

Messages:

    /usr/tmp/@13524.7.cc:14: Internal error #980716.
    /usr/tmp/@13524.7.cc:14: Internal compiler error in do_class_using_decl, at 
       cp/decl2.c:5201

	
>How-To-Repeat:
	
>Fix:
	
Use correct code:

struct X: N::Y {

  using N::Y::f;

};







>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-01 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-01 14:50 c++/3944: Template and using directive neroden
  -- strict thread matches above, loose matches on Subject: below --
2001-08-05  1:22 lerdsuwa
2001-08-04 20:56 fasbjx, Branjonneau

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).