public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43321]  New: [c++0x] ICE on valid auto
@ 2010-03-10 15:08 adam dot rak at streamnovation dot com
  2010-03-10 15:44 ` [Bug c++/43321] " jason at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: adam dot rak at streamnovation dot com @ 2010-03-10 15:08 UTC (permalink / raw)
  To: gcc-bugs

I hope it's a valid "auto". the code works if I write "int" instead of "auto".

It might be related to Bug 43281

internal compiler error: in type_unification_real, at cp/pt.c:13486

template <typename T >
void shuffle(const T& first, const T& last)
{
    auto w = *first;
}

int main()
{
  int b[5];
  shuffle(&b[0],&b[4]);
}

g++-4.5 -v
Using built-in specs.
COLLECT_GCC=g++-4.5
COLLECT_LTO_WRAPPER=/home/rakadam/streamplusplus/local/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=c,c++ --program-suffix=-4.5
--prefix=/home/rakadam/streamplusplus/src/third_party/gcc-trunk/build_gcc/../../../../local
--enable-lto --disable-bootstrap --enable-gold
Thread model: posix
gcc version 4.5.0 20100306 (experimental) (GCC)


-- 
           Summary: [c++0x] ICE on valid auto
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: adam dot rak at streamnovation dot com
 GCC build triplet: x86_64-unknown-linux
  GCC host triplet: x86_64-unknown-linux
GCC target triplet: x86_64-unknown-linux


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


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

* [Bug c++/43321] [c++0x] ICE on valid auto
  2010-03-10 15:08 [Bug c++/43321] New: [c++0x] ICE on valid auto adam dot rak at streamnovation dot com
@ 2010-03-10 15:44 ` jason at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-03-10 15:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jason at gcc dot gnu dot org  2010-03-10 15:43 -------
Yes, that's valid.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-10 15:43:52
               date|                            |


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


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

end of thread, other threads:[~2010-03-10 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10 15:08 [Bug c++/43321] New: [c++0x] ICE on valid auto adam dot rak at streamnovation dot com
2010-03-10 15:44 ` [Bug c++/43321] " jason 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).