public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19298] New: Error compiling Boost.Python test
@ 2005-01-06 19:48 rwgk at yahoo dot com
  2005-01-06 19:49 ` [Bug c++/19298] " rwgk at yahoo dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: rwgk at yahoo dot com @ 2005-01-06 19:48 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1536 bytes --]

gcc CVS mainline, 2005/01/06 09:53 PST
Configured with: /net/legless/scratch1/rwgk/gcc_cvs_head/configure --
prefix=/usr/local_cci/gcc_cvs_head_20050106 --enable-languages=c,c++
Red Hat Enterprise Linux WS release 3 (Taroon)
Boost CVS mainline, 2005/01/06 10:09 PST

% g++ -I/net/legless/scratch1/rwgk/hot/boost -I/usr/include/python2.2 -
E /net/legless/scratch1/rwgk/hot/boost/libs/python/test/args.cpp > args_pp.cpp

% g++ -c args_pp.cpp

Lots of output ending with:

/net/legless/scratch1/rwgk/hot/boost/boost/python/object/make_ptr_instance.hpp:4
5: error: request for member ‘get_class_object’ in 
‘boost::python::converter::detail::registered_base<const volatile 
Y&>::converters’, which is of non-class type ‘const 
boost::python::converter::registration&’

The same code compiles with gcc 3.2.3 on the same machine.

I will attach the preprocessed source code. The same file is also available 
here:

http://cci.lbl.gov/~rwgk/bugs/gcc_cvs_head_20050106/args_pp.cpp.gz

-- 
           Summary: Error compiling Boost.Python test
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rwgk at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/19298] Error compiling Boost.Python test
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
@ 2005-01-06 19:49 ` rwgk at yahoo dot com
  2005-01-06 19:52 ` rwgk at yahoo dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rwgk at yahoo dot com @ 2005-01-06 19:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rwgk at yahoo dot com  2005-01-06 19:49 -------
Created an attachment (id=7886)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7886&action=view)
Preprocessed source code


-- 


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


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

* [Bug c++/19298] Error compiling Boost.Python test
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
  2005-01-06 19:49 ` [Bug c++/19298] " rwgk at yahoo dot com
@ 2005-01-06 19:52 ` rwgk at yahoo dot com
  2005-01-06 19:55 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rwgk at yahoo dot com @ 2005-01-06 19:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rwgk at yahoo dot com  2005-01-06 19:51 -------
Date: Thu, 06 Jan 2005 14:24:06 -0500
From: David Abrahams

Ralf W. Grosse-Kunstleve wrote:
> Hi David,
> 
> To ensure that Boost.Python will work with gcc 4 I've checked out the
> latest gcc cvs today, along with the latest boost cvs. There are lots
> of errors when compiling the Boost.Python tests, but as far as I can
> tell only two types of errors. One is an internal compiler error, i.e.
> there is no question that I have to file a bug report for this one.
> However, I am not sure about the second one. Could you please have a
> look?
> 
>   Raw error message:
>     http://cci.lbl.gov/~rwgk/bugs/gcc_cvs_head_20050106/error_which_is_of_non_
class_type
> 
>   Same but processed with gSTLFilt.pl:
>     http://cci.lbl.gov/~rwgk/bugs/gcc_cvs_head_20050106/error_which_is_of_non_
class_type_stlfilt

That's not much help, is it!?

> If you think it is a gcc 4 problem rather than a boost problem
> I'll file a bug report.

Well, let's see.  I think you can do this analysis yourself, FWIW:

/net/legless/scratch1/rwgk/hot/boost/boost/python/object/make_instance.hpp:63:
error: request for member M-CM-"M-bM-^BM-,M-KM-^\get_class_objectM-CM-"M-bM-^B
M-,M-bM-^DM-" in
M-CM-"M-bM-^BM-,M-KM-^\boost::python::converter::detail::registered_base<const v
olatile
Y&>::convertersM-CM-"M-bM-^BM-,M-bM-^DM-", which is of non-class type M-CM-"M-b
M-^BM-,M-KM-^\const
boost::python::converter::registration&M-CM-"M-bM-^BM-,M-bM-^DM-"

It seems to be claiming that the static

   registration const&

member named "converters" of

  registered_base<Y const volatile&>

Doesn't have class type.  Clearly wrong.  I mean, it's a reference to an
object of class type, but for all purposes other than initialization you
can do the same things with that as you can do with a class instance.

> Thanks!
>         Ralf
> 
> BTW: Do you know what to make of the strange characters (e.g. M-CM-"M-bM-^BM-,
M-bM-^DM-")?

GCC bug?


-- 


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


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

* [Bug c++/19298] Error compiling Boost.Python test
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
  2005-01-06 19:49 ` [Bug c++/19298] " rwgk at yahoo dot com
  2005-01-06 19:52 ` rwgk at yahoo dot com
@ 2005-01-06 19:55 ` pinskia at gcc dot gnu dot org
  2005-01-06 20:11 ` [Bug c++/19298] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-06 19:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-06 19:55 -------
(In reply to comment #2)
> > BTW: Do you know what to make of the strange characters (e.g. M-CM-"M-bM-^BM-,
> M-bM-^DM-")?
> 
> GCC bug?
No,  just using UTF-8 for the quotes because your LC/LANG includes UTF-8 in there.  if you don't want 
them, don't lie to the compiler about supporting UTF-8 :).


I will try to reduce this also.

-- 


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


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

* [Bug c++/19298] [4.0 Regression] Error compiling Boost.Python test
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
                   ` (2 preceding siblings ...)
  2005-01-06 19:55 ` pinskia at gcc dot gnu dot org
@ 2005-01-06 20:11 ` pinskia at gcc dot gnu dot org
  2005-01-06 21:27 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-06 20:11 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
            Summary|Error compiling Boost.Python|[4.0 Regression] Error
                   |test                        |compiling Boost.Python test
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/19298] [4.0 Regression] Error compiling Boost.Python test
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
                   ` (3 preceding siblings ...)
  2005-01-06 20:11 ` [Bug c++/19298] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-01-06 21:27 ` pinskia at gcc dot gnu dot org
  2005-01-06 23:47 ` wanderer at rsu dot ru
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-06 21:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-06 21:27 -------
Created an attachment (id=7887)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7887&action=view)
a little more reduced

This is as far as I getting, not much but a start, someone else wants to start
reducing it?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #7886 is|0                           |1
           obsolete|                            |


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


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

* [Bug c++/19298] [4.0 Regression] Error compiling Boost.Python test
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
                   ` (4 preceding siblings ...)
  2005-01-06 21:27 ` pinskia at gcc dot gnu dot org
@ 2005-01-06 23:47 ` wanderer at rsu dot ru
  2005-01-07  0:54 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: wanderer at rsu dot ru @ 2005-01-06 23:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wanderer at rsu dot ru  2005-01-06 23:47 -------
Created an attachment (id=7890)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7890&action=view)
With removed (mostly) iostreams and some other 


-- 


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


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

* [Bug c++/19298] [4.0 Regression] Error compiling Boost.Python test
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
                   ` (5 preceding siblings ...)
  2005-01-06 23:47 ` wanderer at rsu dot ru
@ 2005-01-07  0:54 ` pinskia at gcc dot gnu dot org
  2005-01-07  0:56 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-07  0:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-07 00:54 -------
I decided to take a different method to reducing this testcase by using the old style copy and paste 
method which is better sometimes at reducing testcases (in fact much better and faster with C++ 
code):
struct t
{
  void f() const;
};
template <typename _Tp>
struct A
{
 static t const&  c;
};
template <typename _Tp>
void g(void)
{
  A<_Tp>::c.f();
}
void h(void)
{
  g<int>();
}


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Priority|P2                          |P1
   Last reconfirmed|0000-00-00 00:00:00         |2005-01-07 00:54:46
               date|                            |


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


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

* [Bug c++/19298] [4.0 Regression] Error compiling Boost.Python test
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
                   ` (6 preceding siblings ...)
  2005-01-07  0:54 ` pinskia at gcc dot gnu dot org
@ 2005-01-07  0:56 ` pinskia at gcc dot gnu dot org
  2005-01-07 12:57 ` [Bug c++/19298] [4.0 Regression] dependent type (references) and calling a function method nathan at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-07  0:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-07 00:56 -------
It worked with 4.0.0 20041124 so this is a new regression :(.

-- 


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


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

* [Bug c++/19298] [4.0 Regression] dependent type (references) and calling a function method
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
                   ` (7 preceding siblings ...)
  2005-01-07  0:56 ` pinskia at gcc dot gnu dot org
@ 2005-01-07 12:57 ` nathan at gcc dot gnu dot org
  2005-01-07 17:09 ` cvs-commit at gcc dot gnu dot org
  2005-01-07 17:09 ` nathan at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-01-07 12:57 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nathan at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-01-07 00:54:46         |2005-01-07 12:57:22
               date|                            |


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


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

* [Bug c++/19298] [4.0 Regression] dependent type (references) and calling a function method
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
                   ` (9 preceding siblings ...)
  2005-01-07 17:09 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-07 17:09 ` nathan at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-01-07 17:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2005-01-07 17:09 -------
2005-01-07  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/19298
	* pt.c (tsubst_qualified_id): Call convert_from_reference.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/19298] [4.0 Regression] dependent type (references) and calling a function method
  2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
                   ` (8 preceding siblings ...)
  2005-01-07 12:57 ` [Bug c++/19298] [4.0 Regression] dependent type (references) and calling a function method nathan at gcc dot gnu dot org
@ 2005-01-07 17:09 ` cvs-commit at gcc dot gnu dot org
  2005-01-07 17:09 ` nathan at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-07 17:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-07 17:09 -------
Subject: Bug 19298

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	nathan@gcc.gnu.org	2005-01-07 17:09:16

Modified files:
	gcc/cp         : ChangeLog pt.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/template: ref2.C 

Log message:
	cp:
	PR c++/19298
	* pt.c (tsubst_qualified_id): Call convert_from_reference.
	testsuite:
	PR c++/19298
	* g++.dg/template/ref2.C: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4572&r2=1.4573
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.965&r2=1.966
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4865&r2=1.4866
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ref2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

end of thread, other threads:[~2005-01-07 17:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-06 19:48 [Bug c++/19298] New: Error compiling Boost.Python test rwgk at yahoo dot com
2005-01-06 19:49 ` [Bug c++/19298] " rwgk at yahoo dot com
2005-01-06 19:52 ` rwgk at yahoo dot com
2005-01-06 19:55 ` pinskia at gcc dot gnu dot org
2005-01-06 20:11 ` [Bug c++/19298] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-06 21:27 ` pinskia at gcc dot gnu dot org
2005-01-06 23:47 ` wanderer at rsu dot ru
2005-01-07  0:54 ` pinskia at gcc dot gnu dot org
2005-01-07  0:56 ` pinskia at gcc dot gnu dot org
2005-01-07 12:57 ` [Bug c++/19298] [4.0 Regression] dependent type (references) and calling a function method nathan at gcc dot gnu dot org
2005-01-07 17:09 ` cvs-commit at gcc dot gnu dot org
2005-01-07 17:09 ` nathan 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).