public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29486]  New: call of friend template is ambiguous
@ 2006-10-16 17:26 syntheticpp at gmx dot net
  2006-10-16 17:41 ` [Bug c++/29486] " syntheticpp at gmx dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: syntheticpp at gmx dot net @ 2006-10-16 17:26 UTC (permalink / raw)
  To: gcc-bugs

While moving the definition of a friend template out of the class definition I
found this error.

Please compile the attached file and have a look at the ReleaseAll function.

The file is part of Loki.


-- 
           Summary: call of friend template is ambiguous
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: syntheticpp at gmx dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486


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

* [Bug c++/29486] call of friend template is ambiguous
  2006-10-16 17:26 [Bug c++/29486] New: call of friend template is ambiguous syntheticpp at gmx dot net
@ 2006-10-16 17:41 ` syntheticpp at gmx dot net
  2006-10-16 20:07 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: syntheticpp at gmx dot net @ 2006-10-16 17:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from syntheticpp at gmx dot net  2006-10-16 17:40 -------
Created an attachment (id=12447)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12447&action=view)
demo: g++ bug.cpp


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486


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

* [Bug c++/29486] call of friend template is ambiguous
  2006-10-16 17:26 [Bug c++/29486] New: call of friend template is ambiguous syntheticpp at gmx dot net
  2006-10-16 17:41 ` [Bug c++/29486] " syntheticpp at gmx dot net
@ 2006-10-16 20:07 ` pinskia at gcc dot gnu dot org
  2006-10-16 20:53 ` syntheticpp at gmx dot net
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-16 20:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-10-16 20:07 -------
Quickly looking at the source, I think this is the same as PR 29438 and PR
29236.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |29236, 29438


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486


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

* [Bug c++/29486] call of friend template is ambiguous
  2006-10-16 17:26 [Bug c++/29486] New: call of friend template is ambiguous syntheticpp at gmx dot net
  2006-10-16 17:41 ` [Bug c++/29486] " syntheticpp at gmx dot net
  2006-10-16 20:07 ` pinskia at gcc dot gnu dot org
@ 2006-10-16 20:53 ` syntheticpp at gmx dot net
  2006-10-16 21:00 ` syntheticpp at gmx dot net
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: syntheticpp at gmx dot net @ 2006-10-16 20:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from syntheticpp at gmx dot net  2006-10-16 20:53 -------
Comeau compiles it, but vc8 also fails.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486


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

* [Bug c++/29486] call of friend template is ambiguous
  2006-10-16 17:26 [Bug c++/29486] New: call of friend template is ambiguous syntheticpp at gmx dot net
                   ` (2 preceding siblings ...)
  2006-10-16 20:53 ` syntheticpp at gmx dot net
@ 2006-10-16 21:00 ` syntheticpp at gmx dot net
  2006-10-16 21:09 ` syntheticpp at gmx dot net
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: syntheticpp at gmx dot net @ 2006-10-16 21:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from syntheticpp at gmx dot net  2006-10-16 20:59 -------
Created an attachment (id=12448)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12448&action=view)
mingw-gcc crash

Here another file which does not compile.

On Windows gcc even crashs:

bug2.cpp: In function `void friend_handling()':
bug2.cpp:1626: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

Reading specs from c:/programme/mingw/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/min
gw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java
--disable-win32-registry --disable-shared --ena
ble-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x
--enable-java-gc=boehm --disable-libgcj-debug --enable-in
terpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)


And cygwin:

Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr
--exec-prefix=/usr --sysconfdir=/etc --libdir=/
usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-languages=c,ada,c++,d,f77,java,objc
--enable-nls --without-included-gettext --enable-version-specific-runtime-libs
--without-x --enable-libgcj --disable-java-awt
 --with-system-zlib --enable-interpreter --disable-libgcj-debug
--enable-threads=posix --enable-java-gc=boehm --disable-win32
-registry --enable-sjlj-exceptions --enable-hash-synchronization
--enable-libstdcxx-debug : (reconfigured)
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486


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

* [Bug c++/29486] call of friend template is ambiguous
  2006-10-16 17:26 [Bug c++/29486] New: call of friend template is ambiguous syntheticpp at gmx dot net
                   ` (3 preceding siblings ...)
  2006-10-16 21:00 ` syntheticpp at gmx dot net
@ 2006-10-16 21:09 ` syntheticpp at gmx dot net
  2006-10-16 21:19 ` syntheticpp at gmx dot net
  2006-10-20  7:33 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: syntheticpp at gmx dot net @ 2006-10-16 21:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from syntheticpp at gmx dot net  2006-10-16 21:09 -------
bug2.cpp: 4.0.1 and 20061010 doesn't crash.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486


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

* [Bug c++/29486] call of friend template is ambiguous
  2006-10-16 17:26 [Bug c++/29486] New: call of friend template is ambiguous syntheticpp at gmx dot net
                   ` (4 preceding siblings ...)
  2006-10-16 21:09 ` syntheticpp at gmx dot net
@ 2006-10-16 21:19 ` syntheticpp at gmx dot net
  2006-10-20  7:33 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: syntheticpp at gmx dot net @ 2006-10-16 21:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from syntheticpp at gmx dot net  2006-10-16 21:18 -------
(In reply to comment #2)
> Quickly looking at the source, I think this is the same as PR 29438 and PR
> 29236.
> 

Yes, this is possible, allways template templates are used as template
parameter.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486


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

* [Bug c++/29486] call of friend template is ambiguous
  2006-10-16 17:26 [Bug c++/29486] New: call of friend template is ambiguous syntheticpp at gmx dot net
                   ` (5 preceding siblings ...)
  2006-10-16 21:19 ` syntheticpp at gmx dot net
@ 2006-10-20  7:33 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-20  7:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-10-20 07:33 -------
Yes this is a dup of bug 29236.

*** This bug has been marked as a duplicate of 29236 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |rejects-valid
      Known to work|                            |2.95.3
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29486


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

end of thread, other threads:[~2006-10-20  7:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-16 17:26 [Bug c++/29486] New: call of friend template is ambiguous syntheticpp at gmx dot net
2006-10-16 17:41 ` [Bug c++/29486] " syntheticpp at gmx dot net
2006-10-16 20:07 ` pinskia at gcc dot gnu dot org
2006-10-16 20:53 ` syntheticpp at gmx dot net
2006-10-16 21:00 ` syntheticpp at gmx dot net
2006-10-16 21:09 ` syntheticpp at gmx dot net
2006-10-16 21:19 ` syntheticpp at gmx dot net
2006-10-20  7:33 ` pinskia at gcc dot gnu dot org

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