[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#216225: marked as done (Bug in g++ 3.3.2)



Your message dated Sun, 16 Nov 2003 21:13:43 +0100
with message-id <16311.55927.57626.988285@gargle.gargle.HOWL>
and subject line Bug#216225: Bug in g++ 3.3.2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Oct 2003 11:48:57 +0000
>From pablo@cronosii.org Fri Oct 17 06:48:55 2003
Return-path: <pablo@cronosii.org>
Received: from 230.red-80-26-45.pooles.rima-tde.net (nerthus.mepreocupa.com) [80.26.45.230] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AAT6E-0006fn-00; Fri, 17 Oct 2003 06:48:54 -0500
Received: from bs29.bluesock.net (30.Red-80-25-129.pooles.rima-tde.net [80.25.129.30])
	by nerthus.mepreocupa.com (8.12.9/8.12.9/Debian-3) with ESMTP id h9HBnZ7h024442
	for <submit@bugs.debian.org>; Fri, 17 Oct 2003 13:49:37 +0200
Subject: Bug in g++ 3.3.2
From: Pablo =?ISO-8859-1?Q?Fern=E1ndez?= <pablo@cronosII.org>
To: submit@bugs.debian.org
Content-Type: multipart/mixed; boundary="=-xZxLMcn9BW2tgKbXz1nC"
Message-Id: <1066391336.757.16.camel@marvin>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.0 
Date: 17 Oct 2003 13:48:57 +0200
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-4.9 required=4.0
	tests=HAS_PACKAGE,OFFERS_ETC
	version=2.53-bugs.debian.org_2003_10_13
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_13 (1.174.2.15-2003-03-30-exp)


--=-xZxLMcn9BW2tgKbXz1nC
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by nerthus.mepreocupa.com id h9HBnZ7h024442

Package: g++
Version: 3.3.2 20031005 Debian pre-release

We had a syntax error in a class definition in the .h which wasn't
reported by the GNU C++ compiler. I attach the header and the source
files.

Note line the header file, at line 45.

Thanks,
Pablo Fern=C3=A1ndez.


--=-xZxLMcn9BW2tgKbXz1nC
Content-Disposition: attachment; filename=bslproductinsertwidget.cpp
Content-Type: text/x-c++; name=bslproductinsertwidget.cpp; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by nerthus.mepreocupa.com id h9HBnZ7h024442

/************************************************************************=
***
                          bslproductinsertwidget.cpp  -  description
                             -------------------
    begin                : jue oct 16 2003
    copyright            : (C) 2003 by BSTeam
    email                : bsteam@bluesock.net
 ************************************************************************=
***/

/************************************************************************=
***
 *                                                                       =
  *
 *   This program is free software; you can redistribute it and/or modify=
  *
 *   it under the terms of the GNU General Public License as published by=
  *
 *   the Free Software Foundation; either version 2 of the License, or   =
  *
 *   (at your option) any later version.                                 =
  *
 *                                                                       =
  *
 ************************************************************************=
***/

#include "bslproductinsertwidget.h"

#include "../../productsmodule/productmodule.h"

#include <qdatastream.h>
#include <qlineedit.h>
#include <qcombobox.h>
#include <qgroupbox.h>
#include <qmessagebox.h>
#include <qfile.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qregexp.h>
#include <qpixmap.h>
#include <qlabel.h>
#include <qbuttongroup.h>
#include <qiconview.h>
#include <qcolor.h>
#include <qtable.h>
#include <qwidgetstack.h>
#include <qcheckbox.h>
#include <qradiobutton.h>
#include <qtextedit.h>
#include <qlayout.h>
#include <qfiledialog.h>
#include <qpushbutton.h>

#include <libbslxml/xmlconfig.h>

#include <qimage.h>
#include <qwmatrix.h>

#include <dcopclient.h>
#include <kapplication.h>

#include <iostream>
namespace std{};
using namespace std;


//const QCString& FINGERPRINT_DCOP_MODULE =3D "dcopfx2000";

const int PRODUCT_PROPERTIES_STACK =3D 0;
const int PRODUCT_COMPOSTION_STACK =3D 1;
const int PRODUCT_OPTIONS_PAGE =3D 0;
const int PRODUCT_OFFERS_PAGE =3D 1;

const QString INSERT_PRODUCT =3D "A=F1adir Producto";
const QString INSERT_COMPOSITION =3D "A=F1adir Combinaci=F3n";
const QString UPDATE_PRODUCT =3D "Modificar Producto";
const QString UPDATE_COMPOSITION =3D "Modificar Combinaci=F3n";
const QString DELETE_PRODUCT =3D "Borrar Producto";
const QString DELETE_COMPOSITION =3D "Borrar Combinaci=F3n";

#define SIZE_ICON 32.00

const QString action =3D "A=F1adir Combinaci=F3n";

BslProductInsertWidget::BslProductInsertWidget(QString _action, ProductMo=
dule *_product_mod,
                                                                         =
            QWidget *parent, const char *name):
ProductInsertWidget(parent,name),
product_mod(0)
{
QStringList *col_names =3D 0;
QHBoxLayout *layout =3D 0;

     action =3D _action;
     product_mod =3D _product_mod;

     tax_group->setExclusive(true);

     table =3D new BslDDTable(ddtable_frame, "table");
     table->setNumCols(3);

     col_names =3D new QStringList();
     col_names->append("Logo");
     col_names->append("Producto");
     col_names->append("Cantidad");
     table->setColumnLabels(*col_names);
     delete col_names;

     if(!(layout =3D(QHBoxLayout *) ddtable_frame->layout())){
          layout =3D new QHBoxLayout(ddtable_frame);
     }
     layout->addWidget(table);

     layout =3D 0;
     //compose and fill the iconview frame
     iconview =3D new BslDDIconView(ddiconview_frame,"iconview");
     if (!(layout =3D(QHBoxLayout *) ddiconview_frame->layout())){
          layout =3D new QHBoxLayout(ddiconview_frame);
     }
     layout->addWidget(iconview);

//     layout =3D 0;
//     //compose and fill the iconview frame
//     logo_view =3D new BslDDIconView(logo_frame,"logo_view");
//     if (!(layout =3D(QHBoxLayout *) logo_frame->layout())){
//          layout =3D new QHBoxLayout(logo_frame);
//     }
//     layout->addWidget(logo_view);

     iconview->setGridX(70);
     iconview->setGridY(70);

//     logo_view->setGridX(60);
//     logo_view->setGridY(60);

     layout =3D 0;
     float_keyboard_product =3D new FloatKeyboardBox(numblock_product_fra=
me, "float_keyboard_product");
     if(!(layout =3D (QHBoxLayout *) numblock_product_frame->layout())){
          layout =3D new QHBoxLayout(numblock_product_frame);
     }
     layout->addWidget(float_keyboard_product);

     layout =3D 0;
     float_keyboard_option =3D 0;
     float_keyboard_option =3D new FloatKeyboardBox(numblock_option_frame=
, "float_keyboard_option");
     if(!(layout =3D (QHBoxLayout *) numblock_option_frame->layout())){
          layout =3D new QHBoxLayout(numblock_option_frame);
     }
     layout->addWidget(float_keyboard_option);

     layout =3D 0;
     float_keyboard_offer =3D new FloatKeyboardBox(numblock_offer_frame, =
"float_keyboard_offer");
     if(!(layout =3D (QHBoxLayout *) numblock_offer_frame->layout())){
          layout =3D new QHBoxLayout(numblock_offer_frame);
     }
     layout->addWidget(float_keyboard_offer);

     tax_group->setOrientation(Qt::Horizontal);

//     //prepare the connections
//     connect(accept_button,SIGNAL(released()),this,SLOT(acceptSlot()));
//     connect(delete_button,SIGNAL(released()),this,SLOT(clear()));
//     connect(previous_button, SIGNAL(released()), this, SLOT(showProduc=
tProperties()));
//     //previousSlot()));
//     connect(next_button, SIGNAL(released()), this, SLOT(showProductCom=
position()));
//     //nextSlot()));

     //product
     connect(product_name,SIGNAL(textChanged(const QString&)),this,SLOT(p=
roductNameChanged(const QString&)));

//     //options
//     connect(option_type_combo, SIGNAL(activated(const QString&)), this=
, SLOT(optionTypeActivated(const QString&)));
//     connect(save_option_button, SIGNAL(clicked()), this, SLOT(saveOpti=
onButtonClicked()));
//
//     //offers
//     connect(offer_type_combo, SIGNAL(activated(const QString&)), this,=
 SLOT(offerTypeActivated(const QString&)));
//     connect(save_offer_button, SIGNAL(clicked()), this, SLOT(saveOffer=
ButtonClicked()));
//     connect(enter_price, SIGNAL(stateChanged(int)), this, SLOT(enterPr=
iceChanged(int)));
//
//     connect(table,SIGNAL(textEnter(const QString&)),this,SLOT(draggedT=
ext(const QString&)));
//
//     connect(search_button, SIGNAL(clicked()), this, SLOT(searchButtonC=
licked()));
//     connect(search_edit, SIGNAL(textChanged(const QString &)),this, SL=
OT(searchEditChanged(const QString &)));
//
//     connect(search_product_button, SIGNAL(clicked()), this, SLOT(searc=
hButtonClicked()));
//     connect(search_product, SIGNAL(textChanged(const QString &)), this=
, SLOT(searchEditChanged(const QString &)));
//
//     connect(accept_product, SIGNAL(clicked()), this, SLOT(acceptProduc=
t()));
//     connect(products_list, SIGNAL(currentChanged(QListBoxItem *)), thi=
s, SLOT(productSelected(QListBoxItem *)));
//
//     connect(delete_product_button, SIGNAL(released()), this, SLOT(dele=
teProductClicked()));
//     connect(cancel_button, SIGNAL(released()), this, SLOT(showWidgetAc=
tion()));
//    =20
    =20
     init();
}

BslProductInsertWidget::~BslProductInsertWidget(){
}

void BslProductInsertWidget::init(){
     clear();
     product_stack->raiseWidget(PRODUCT_PROPERTIES_STACK);
     tab_options_offers->setCurrentPage(PRODUCT_OPTIONS_PAGE);

     if(action =3D=3D "Product"){
          previous_button->hide();
          next_button->hide();
          accept_button->setEnabled(false);
          accept_button->show();
          cancel_button->show();
     }

     if(action =3D=3D "Composition"){
          previous_button->hide();
          next_button->setEnabled(false);
          next_button->show();
          accept_button->hide();
          cancel_button->show();
     }
}

void BslProductInsertWidget::clear(){
     product_name->clear();
     code->clear();
     family->clear();
     initFamilies();
     description_text->clear();
//     initLogos();

//     initOptionTypes();
     option_default->setChecked(true);
     save_option_button->setEnabled(false);

//     initOfferTypes();
     offer_default->setChecked(true);
     save_offer_button->setEnabled(false);
     calculate_price->setChecked(true);
}

void BslProductInsertWidget::initFamilies(){
QStringList *families =3D 0;
QString xml_string;
XmlConfig *xml =3D 0;
int index, count;

   family->clear();
   if(!product_mod)
        product_mod =3D new ProductModule();

   xml_string =3D product_mod->getFamilies();

   xml =3D new XmlConfig();
   if(!xml->readXmlFromString(xml_string)){
        cerr << "No se pudo convertir el string en xml " << __PRETTY_FUNC=
TION__ << ": " << __LINE__ << endl;
        delete xml;
        return;
   }

   families =3D new QStringList();
   xml->delDomain();
   xml->setDomain("families");
   count =3D xml->howManyTags("family");
   for(index =3D 0; index < count; index++)
        families->append(xml->readString("family[" + QString::number(inde=
x) + "]"));

   delete xml;
  =20
   family->insertStringList(*families);
   delete families;
}


void BslProductInsertWidget::productNameChanged(const QString &text){
QString aux;

     aux =3D text;
     if (action =3D=3D INSERT_PRODUCT){
          aux =3D aux.replace(QRegExp(" "),"_");
          if(!aux.isEmpty()){
               accept_button->setEnabled(true);
               save_option_button->setEnabled(true);
               save_offer_button->setEnabled(true);
          }
     }
     else
          activeButtons();
}


--=-xZxLMcn9BW2tgKbXz1nC
Content-Disposition: attachment; filename=bslproductinsertwidget.h
Content-Type: text/x-c-header; name=bslproductinsertwidget.h; charset=UTF-8
Content-Transfer-Encoding: 7bit

/***************************************************************************
                          bslproductinsertwidget.h  -  description
                             -------------------
    begin                : jue oct 16 2003
    copyright            : (C) 2003 by BSTeam
    email                : bsteam@bluesock.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef BSLPRODUCTINSERTWIDGET_H
#define BSLPRODUCTINSERTWIDGET_H

#include <qptrlist.h>
#include <qobject.h>
#include <qstringlist.h>

#include "productinsertwidget.h"

#include "../menuelements/bsldragobjects.h"
#include "../menuelements/floatkeyboardbox.h"
#include "../../productsmodule/productmodule.h"
/**
  *@author BSTeam
  */

class BslProductInsertWidget : public ProductInsertWidget{
     Q_OBJECT
public: 
	BslProductInsertWidget(QString _action = "Product", ProductModule *_product_mod =0 ,QWidget *parent=0, const char *name=0);
	~BslProductInsertWidget();

private slots:
//        void acceptSlot();
//        void cancelSlot();
        void clear();

        void productNameChanged(const QString &text){

private:
        void init();
        void initFamilies();

        ProductModule *product_mod;
        QString action;

        BslDDIconView *iconview;
        BslDDIconView *logo_view;
        QStringList *code_list;
        BslDDListBox *listbox;
        BslDDTable *table;

        //keyboards
        FloatKeyboardBox *float_keyboard_product;
        FloatKeyboardBox *float_keyboard_option;
        FloatKeyboardBox *float_keyboard_offer;

        QPtrList<QPushButton> *button_list;
};

#endif

--=-xZxLMcn9BW2tgKbXz1nC--


---------------------------------------
Received: (at 216225-done) by bugs.debian.org; 16 Nov 2003 20:17:25 +0000
>From doko@cs.tu-berlin.de Sun Nov 16 14:17:24 2003
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1ALTKm-0000cG-00; Sun, 16 Nov 2003 14:17:24 -0600
Received: from bolero.cs.tu-berlin.de (doko@bolero.cs.tu-berlin.de [130.149.19.1])
	by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id VAA01116;
	Sun, 16 Nov 2003 21:13:43 +0100 (MET)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id hAGKDhYO026533;
	Sun, 16 Nov 2003 21:13:43 +0100 (MET)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Message-ID: <16311.55927.57626.988285@gargle.gargle.HOWL>
Date: Sun, 16 Nov 2003 21:13:43 +0100
To: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>,
        216225-done@bugs.debian.org
Cc: Pablo =?iso-8859-1?q?Fern=E1ndez?= <pablo@mepreocupa.com>
Subject: Re: Bug#216225: Bug in g++ 3.3.2
In-Reply-To: <87fzhrolud.fsf@student.uni-tuebingen.de>
References: <1066391336.757.16.camel@marvin>
	<87fzhskq7o.fsf@student.uni-tuebingen.de>
	<1066401053.2540.0.camel@marvin>
	<87ptgvoqq8.fsf@student.uni-tuebingen.de>
	<1066407822.11580.4.camel@jupiter.10.0.0.3>
	<87fzhrolud.fsf@student.uni-tuebingen.de>
X-Mailer: VM 7.03 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid
Delivered-To: 216225-done@bugs.debian.org
X-Spam-Status: No, hits=-5.7 required=4.0
	tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT
	version=2.53-bugs.debian.org_2003_11_15
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_15 (1.174.2.15-2003-03-30-exp)

Falk Hueffner writes:
> Pablo Fern=E1ndez <pablo@mepreocupa.com> writes:
>=20
> > I do get a lot of errors but QT errors of the header, complaining i=
n
> > files that uses templates of the class defined in the header I sent=
 you,
> > but I do not get the error message about the class definition that =
has
> > the syntax error.
>=20
> Well, especially with such a complicated language as C++, it can
> hardly be guaranteed that you get an error message where the actual
> mistake is. So I don't think we can do anything about it. Or am I
> misunderstanding something?

closing the report. feedback was requested one month ago.



Reply to: