[Bug c++/44358] New: initializer list can't convert to map

2010-06-01 Thread jarrydb at cse dot unsw dot edu dot au
Configured with: ../gcc-svn/configure --prefix=/home/jarryd/local/gcc-4.6
--enable-languages=c,c++

g++ init_list.cpp -o init_list.o -std=gnu++0x -c -save-temps

init_list.cpp: In function ‘int main()’:
init_list.cpp:5:41: error: could not convert ‘{{1, 1}, {2, 2}}’ to
‘std::mapint, int’


-- 
   Summary: initializer list can't convert to map
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jarrydb at cse dot unsw dot edu dot au
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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



[Bug c++/44358] initializer list can't convert to map

2010-06-01 Thread jarrydb at cse dot unsw dot edu dot au


--- Comment #1 from jarrydb at cse dot unsw dot edu dot au  2010-06-01 
06:50 ---
Created an attachment (id=20790)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20790action=view)
compilation failure

note that this file is the result of:

#include map

int main()
{
  std::mapint, int x = {{1, 1}, {2, 2}};
  return 0;
}


-- 


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



[Bug c++/43890] [4.6 Regression] invalid uninitialized reference in class

2010-04-29 Thread jarrydb at cse dot unsw dot edu dot au


--- Comment #4 from jarrydb at cse dot unsw dot edu dot au  2010-04-29 
21:57 ---
that fixes it for me on x86 and x86_64.


-- 


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



[Bug c++/43890] New: invalid uninitialized reference in class

2010-04-25 Thread jarrydb at cse dot unsw dot edu dot au
Compiling with:
g++ uninit_reference.cpp -o uninit_reference.o -std=gnu++0x -c

class Outer 
{
  public:
  Outer()
  : i(*this)
  {
  }

  class Inner 
  {
public:
Inner(Outer o)
: o(o)
{
}

private:
Outer o;
  };

  private:
  Inner i;
};

class A {
  Outer o;
};

int main()
{
  A *a = new A;

  return 0;
}

uninit_reference.cpp: In function ‘int main()’:
uninit_reference.cpp:31:14: error: uninitialized reference member in ‘class A’
using ‘new’
uninit_reference.cpp:18:12: note: ‘Outer::Inner::o’ should be initialized

Configured with: ../gcc-svn/configure --prefix=/home/jarryd/gcc-latest-install
--enable-languages=c,c++ : (reconfigured) ../gcc-svn/configure
--prefix=/home/jarryd/gcc-latest-install --enable-languages=c,c++ --no-create
--no-recursion : (reconfigured) ../gcc-svn/configure
--prefix=/home/jarryd/gcc-latest-install --enable-languages=c,c++ --no-create
--no-recursion : (reconfigured) ../gcc-svn/configure
--prefix=/home/jarryd/gcc-latest-install --enable-languages=c,c++ --no-create
--no-recursion : (reconfigured) ../gcc-svn/configure
--prefix=/home/jarryd/gcc-latest-install --enable-languages=c,c++ --no-create
--no-recursion : (reconfigured) ../gcc-svn/configure
--prefix=/home/jarryd/gcc-latest-install --enable-languages=c,c++ --no-create
--no-recursion : (reconfigured) ../gcc-svn/configure
--prefix=/home/jarryd/gcc-latest-install --enable-languages=c,c++ --no-create
--no-recursion : (reconfigured) ../gcc-svn/configure
--prefix=/home/jarryd/gcc-latest-install --enable-languages=c,c++ --no-create
--no-recursion
Thread model: posix
gcc version 4.6.0 20100425 (experimental) (GCC)


-- 
   Summary: invalid uninitialized reference in class
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jarrydb at cse dot unsw dot edu dot au
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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



[Bug c++/43028] New: internal compiler error in maybe_adjust_types_for_deduction

2010-02-11 Thread jarrydb at cse dot unsw dot edu dot au
When compiling the attached code, the compiler fails with the following error:
undeclared.cpp:7:3: internal compiler error: tree check: expected class ‘type’,
have ‘exceptional’ (error_mark) in maybe_adjust_types_for_deduction, at
cp/pt.c:13235


-- 
   Summary: internal compiler error in
maybe_adjust_types_for_deduction
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jarrydb at cse dot unsw dot edu dot au
 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=43028



[Bug c++/43028] internal compiler error in maybe_adjust_types_for_deduction

2010-02-11 Thread jarrydb at cse dot unsw dot edu dot au


--- Comment #1 from jarrydb at cse dot unsw dot edu dot au  2010-02-11 
08:23 ---
Created an attachment (id=19838)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19838action=view)
source code which produces compiler error


-- 


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



[Bug c++/43028] internal compiler error in maybe_adjust_types_for_deduction

2010-02-11 Thread jarrydb at cse dot unsw dot edu dot au


--- Comment #3 from jarrydb at cse dot unsw dot edu dot au  2010-02-11 
12:17 ---
Here is my version:
gcc version 4.5.0 20100206 (experimental) (GCC)

Command line:
g++ -std=gnu++0x undeclared.cpp

it only happens with the following source file, it doesn't happen when
undeclared.i is compiled on its own.

#include string

void f() {
  auto y =
  {
std::string(Equation())
  }
}


-- 


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



[Bug c++/43028] internal compiler error in maybe_adjust_types_for_deduction

2010-02-11 Thread jarrydb at cse dot unsw dot edu dot au


--- Comment #4 from jarrydb at cse dot unsw dot edu dot au  2010-02-11 
12:18 ---
Created an attachment (id=19841)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19841action=view)
source file that produces internal compiler error


-- 


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



[Bug c++/43028] [C++0x] internal compiler error in maybe_adjust_types_for_deduction

2010-02-11 Thread jarrydb at cse dot unsw dot edu dot au


--- Comment #6 from jarrydb at cse dot unsw dot edu dot au  2010-02-11 
13:30 ---
The error only occurs when Equation is undeclared.


-- 


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