public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
@ 2008-06-19 12:10 ` pinskia at gcc dot gnu dot org
  2008-06-19 15:59 ` karx11erx at hotmail dot com
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-19 12:10 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-06-19 12:09 -------
This is a bug in opensuse's gjar.

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


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
  2008-06-19 12:10 ` [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3 pinskia at gcc dot gnu dot org
@ 2008-06-19 15:59 ` karx11erx at hotmail dot com
  2008-06-19 16:02 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: karx11erx at hotmail dot com @ 2008-06-19 15:59 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from karx11erx at hotmail dot com  2008-06-19 15:59 -------
(In reply to comment #1)
> This is a bug in opensuse's gjar.
> 
> *** This bug has been marked as a duplicate of 35257 ***
> 

How do I fix it?


-- 

karx11erx at hotmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
  2008-06-19 12:10 ` [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3 pinskia at gcc dot gnu dot org
  2008-06-19 15:59 ` karx11erx at hotmail dot com
@ 2008-06-19 16:02 ` pinskia at gcc dot gnu dot org
  2008-06-19 20:01 ` karx11erx at hotmail dot com
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-19 16:02 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-06-19 16:02 -------
Update your system.  Report this bug to OpenSUSE.

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


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2008-06-19 16:02 ` pinskia at gcc dot gnu dot org
@ 2008-06-19 20:01 ` karx11erx at hotmail dot com
  2008-06-20  9:58 ` karx11erx at hotmail dot com
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: karx11erx at hotmail dot com @ 2008-06-19 20:01 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from karx11erx at hotmail dot com  2008-06-19 20:01 -------
(In reply to comment #3)
> Update your system.  Report this bug to OpenSUSE.
> 
> *** This bug has been marked as a duplicate of 35257 ***
> 

My system is up to date. It is automatically updated several times a week. Is
there an updated gjar somewhere I can install?


-- 

karx11erx at hotmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2008-06-19 20:01 ` karx11erx at hotmail dot com
@ 2008-06-20  9:58 ` karx11erx at hotmail dot com
  2008-06-20 11:00 ` karx11erx at hotmail dot com
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: karx11erx at hotmail dot com @ 2008-06-20  9:58 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from karx11erx at hotmail dot com  2008-06-20 09:58 -------
(In reply to comment #3)
> Update your system.  Report this bug to OpenSUSE.
> 
> *** This bug has been marked as a duplicate of 35257 ***
> 

I have been searching around a little and found that the gjar used by openSUSE
10.3 belongs to a classpath package that is coming from gnu.org
(http://www.gnu.org/software/classpath/). Seems pretty daft to me to claim this
would be a bug I'd have to report to SUSE.


-- 


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2008-06-20  9:58 ` karx11erx at hotmail dot com
@ 2008-06-20 11:00 ` karx11erx at hotmail dot com
  2008-06-20 11:02 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: karx11erx at hotmail dot com @ 2008-06-20 11:00 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from karx11erx at hotmail dot com  2008-06-20 11:00 -------
(In reply to comment #5)
> (In reply to comment #3)
> > Update your system.  Report this bug to OpenSUSE.
> > 
> > *** This bug has been marked as a duplicate of 35257 ***
> > 
> 
> I have been searching around a little and found that the gjar used by openSUSE
> 10.3 belongs to a classpath package that is coming from gnu.org
> (http://www.gnu.org/software/classpath/). Seems pretty daft to me to claim this
> would be a bug I'd have to report to SUSE.
> 

(In reply to comment #3)
> Update your system.  Report this bug to OpenSUSE.
> 
> *** This bug has been marked as a duplicate of 35257 ***
> 

Now this is great: I have found the latest classpath source, but: I have no
clue where to have install put the stuff in - though that doesn't matter,
because the install procedure needs several libraries in newer versions than I
have installed on my system, and which do not seem to be available from SUSE.
So I can either try to collect all that stuff from somewhere from the internet
and install it manually, hoping it doesn't break my system, spending hours and
hours of additional work with dubious prospect of success, or wait for SUSE to
release gcc 4.3. All that because some not so smart people chose classpath over
Sun's java libs for the sake of it being free, although it is not yet available
in a version that indicates it would be stable, and that is at least
1.something. And all that is why? Because gcc 4.1 throws some errors on our
code that works flawlessly with MS compilers and gcc 3, and that absolutely do
not seem to be justified, and I wanted to make sure this problem  is either
fixed or still present in the latest gcc release in order to avoid remarks like
"update to the latest compiler version". I would so love to use Linux, but as
soon as you leave the beaten path of common distros and are not an expert of
sorts, you are completely lost with this operating "system" (I miss the
"system" in this stuff). When will you Linux geeks learn to get your act
together, if you ever want to offer a true alternative to Windows? 


-- 


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2008-06-20 11:00 ` karx11erx at hotmail dot com
@ 2008-06-20 11:02 ` pinskia at gcc dot gnu dot org
  2008-06-20 11:04 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-20 11:02 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from pinskia at gcc dot gnu dot org  2008-06-20 11:02 -------
Since the gjar you are using is from OpenSUSE, you should report this bug to
them.

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


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2008-06-20 11:02 ` pinskia at gcc dot gnu dot org
@ 2008-06-20 11:04 ` pinskia at gcc dot gnu dot org
  2008-06-20 12:28 ` karx11erx at hotmail dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-20 11:04 UTC (permalink / raw)
  To: java-prs



------- Comment #8 from pinskia at gcc dot gnu dot org  2008-06-20 11:04 -------
> Because gcc 4.1 throws some errors on our
> code that works flawlessly with MS compilers and gcc 3, and that absolutely do
> not seem to be justified, and I wanted to make sure this problem  is either
> fixed or still present in the latest gcc release in order to avoid remarks like
> "update to the latest compiler version". 

Have you read the changes pages?
Start with http://gcc.gnu.org/gcc-3.4/changes.html and then read
http://gcc.gnu.org/gcc-4.0/changes.html and then
http://gcc.gnu.org/gcc-4.1/changes.html .  Most likely your C++ code is not
really standard C++ after all.


-- 


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2008-06-20 11:04 ` pinskia at gcc dot gnu dot org
@ 2008-06-20 12:28 ` karx11erx at hotmail dot com
  2008-06-20 12:33 ` karx11erx at hotmail dot com
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: karx11erx at hotmail dot com @ 2008-06-20 12:28 UTC (permalink / raw)
  To: java-prs



------- Comment #9 from karx11erx at hotmail dot com  2008-06-20 12:28 -------
(In reply to comment #8)
> > Because gcc 4.1 throws some errors on our
> > code that works flawlessly with MS compilers and gcc 3, and that absolutely do
> > not seem to be justified, and I wanted to make sure this problem  is either
> > fixed or still present in the latest gcc release in order to avoid remarks like
> > "update to the latest compiler version". 
> 
> Have you read the changes pages?
> Start with http://gcc.gnu.org/gcc-3.4/changes.html and then read
> http://gcc.gnu.org/gcc-4.0/changes.html and then
> http://gcc.gnu.org/gcc-4.1/changes.html .  Most likely your C++ code is not
> really standard C++ after all.
> 

Which rule is forbidding this:

template <class T> class CTest {
   struct test {
      int i;
   } test *testptr;
};


-- 

karx11erx at hotmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2008-06-20 12:28 ` karx11erx at hotmail dot com
@ 2008-06-20 12:33 ` karx11erx at hotmail dot com
  2008-06-20 12:37 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: karx11erx at hotmail dot com @ 2008-06-20 12:33 UTC (permalink / raw)
  To: java-prs



------- Comment #10 from karx11erx at hotmail dot com  2008-06-20 12:33 -------
(In reply to comment #9)
> (In reply to comment #8)
> > > Because gcc 4.1 throws some errors on our
> > > code that works flawlessly with MS compilers and gcc 3, and that absolutely do
> > > not seem to be justified, and I wanted to make sure this problem  is either
> > > fixed or still present in the latest gcc release in order to avoid remarks like
> > > "update to the latest compiler version". 
> > 
> > Have you read the changes pages?
> > Start with http://gcc.gnu.org/gcc-3.4/changes.html and then read
> > http://gcc.gnu.org/gcc-4.0/changes.html and then
> > http://gcc.gnu.org/gcc-4.1/changes.html .  Most likely your C++ code is not
> > really standard C++ after all.
> > 
> 
> Which rule is forbidding this:
> 
> template <class T> class CTest {
>    struct test {
>       int i;
>    } test *testptr;
> };
> 

(In reply to comment #8)
> > Because gcc 4.1 throws some errors on our
> > code that works flawlessly with MS compilers and gcc 3, and that absolutely do
> > not seem to be justified, and I wanted to make sure this problem  is either
> > fixed or still present in the latest gcc release in order to avoid remarks like
> > "update to the latest compiler version". 
> 
> Have you read the changes pages?
> Start with http://gcc.gnu.org/gcc-3.4/changes.html and then read
> http://gcc.gnu.org/gcc-4.0/changes.html and then
> http://gcc.gnu.org/gcc-4.1/changes.html .  Most likely your C++ code is not
> really standard C++ after all.
> 

There is also no ambiguity in this:

template<class T> CBase<T> 
{
protected:
   T *i;
};

template<class T> CDerived : public CBase<T>
{
inline T* foo (void) { return const_cast <T*> i; }
}

Yet it only compiles if it is defined like this:

template<class T> CDerived : public CBase<T>
{
inline T* foo (void) { return const_cast<T*> this->i; }
}


-- 


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2008-06-20 12:33 ` karx11erx at hotmail dot com
@ 2008-06-20 12:37 ` pinskia at gcc dot gnu dot org
  2008-06-20 13:03 ` karx11erx at hotmail dot com
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-20 12:37 UTC (permalink / raw)
  To: java-prs



------- Comment #11 from pinskia at gcc dot gnu dot org  2008-06-20 12:37 -------
> There is also no ambiguity in this:

Why that is invalid code is shown on http://gcc.gnu.org/gcc-3.4/changes.html .

(In reply to comment #9)
> Which rule is forbidding this:
> 
> template <class T> class CTest {
>    struct test {
>       int i;
>    } test *testptr;
> };

For this, you have a variable that is test and then *testptr which does not
make sense.  Try it in a non template and you will see that it is invalid code.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2008-06-20 12:37 ` pinskia at gcc dot gnu dot org
@ 2008-06-20 13:03 ` karx11erx at hotmail dot com
  2008-06-20 14:01 ` pinskia at gcc dot gnu dot org
  2008-06-21  8:57 ` karx11erx at hotmail dot com
  13 siblings, 0 replies; 14+ messages in thread
From: karx11erx at hotmail dot com @ 2008-06-20 13:03 UTC (permalink / raw)
  To: java-prs



------- Comment #12 from karx11erx at hotmail dot com  2008-06-20 13:03 -------
(In reply to comment #11)
> > There is also no ambiguity in this:
> 
> Why that is invalid code is shown on http://gcc.gnu.org/gcc-3.4/changes.html .
> 
> (In reply to comment #9)
> > Which rule is forbidding this:
> > 
> > template <class T> class CTest {
> >    struct test {
> >       int i;
> >    } test *testptr;
> > };
> 
> For this, you have a variable that is test and then *testptr which does not
> make sense.  Try it in a non template and you will see that it is invalid code.
> 

I have read the rule that enforces "this->" dereferencing - for the sake of
resolving ambiguity. There is no ambiguity in the above declaration though.

The struct variable/pointer variable declaration declares two variables at
once, where the latter can be changed whenever seen fit. I can't see why it
shouldn't make sense (but I may add to my defense that I haven't written that
code and never would have written code like that: It is my ungrateful task to
make it fit for gcc 4). Anyway, gcc 4 is the only compiler we found yet to
reject this code. Well, stuff like that shouldn't appear to often, so we can
manually fix it.


-- 


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2008-06-20 13:03 ` karx11erx at hotmail dot com
@ 2008-06-20 14:01 ` pinskia at gcc dot gnu dot org
  2008-06-21  8:57 ` karx11erx at hotmail dot com
  13 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-06-20 14:01 UTC (permalink / raw)
  To: java-prs



------- Comment #13 from pinskia at gcc dot gnu dot org  2008-06-20 14:01 -------
think of:

template<class T> struct CBase<T> 
{
protected:
   T *i;
};
template<> struct CBase<int>
{
protected: typedef int i;
};

template<class T> struct CDerived : public CBase<T>
{
inline T* foo (void) { return const_cast <T*> i; }
}

What happens then?


-- 


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


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

* [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3
       [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2008-06-20 14:01 ` pinskia at gcc dot gnu dot org
@ 2008-06-21  8:57 ` karx11erx at hotmail dot com
  13 siblings, 0 replies; 14+ messages in thread
From: karx11erx at hotmail dot com @ 2008-06-21  8:57 UTC (permalink / raw)
  To: java-prs



------- Comment #14 from karx11erx at hotmail dot com  2008-06-21 08:57 -------
(In reply to comment #13)
> think of:
> 
> template<class T> struct CBase<T> 
> {
> protected:
>    T *i;
> };
> template<> struct CBase<int>
> {
> protected: typedef int i;
> };
> 
> template<class T> struct CDerived : public CBase<T>
> {
> inline T* foo (void) { return const_cast <T*> i; }
> }
> 
> What happens then?
> 

That was not the code, and is not contained anywhere in that code. Your case
seems totally theoretical and constructed, rather like "look what crazy things
could be done with templates!" To be honest, while I have some basic
understanding of templates and healthy applications for them, I don't even
understand "template<> struct CBase<int>" and wonder why one would declare a
type inside of it. But anyway, as the required changes are ISO conformant, our
source code will be changed accordingly (and I won't have to do it, hah).


-- 


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


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

end of thread, other threads:[~2008-06-21  8:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-36576-16337@http.gcc.gnu.org/bugzilla/>
2008-06-19 12:10 ` [Bug c++/36576] gcc 4.3.1 doesn't build for me on openSUSE 10.3 pinskia at gcc dot gnu dot org
2008-06-19 15:59 ` karx11erx at hotmail dot com
2008-06-19 16:02 ` pinskia at gcc dot gnu dot org
2008-06-19 20:01 ` karx11erx at hotmail dot com
2008-06-20  9:58 ` karx11erx at hotmail dot com
2008-06-20 11:00 ` karx11erx at hotmail dot com
2008-06-20 11:02 ` pinskia at gcc dot gnu dot org
2008-06-20 11:04 ` pinskia at gcc dot gnu dot org
2008-06-20 12:28 ` karx11erx at hotmail dot com
2008-06-20 12:33 ` karx11erx at hotmail dot com
2008-06-20 12:37 ` pinskia at gcc dot gnu dot org
2008-06-20 13:03 ` karx11erx at hotmail dot com
2008-06-20 14:01 ` pinskia at gcc dot gnu dot org
2008-06-21  8:57 ` karx11erx at hotmail dot com

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