[cfe-commits] r147730 - in /cfe/trunk: include/clang/Sema/Sema.h lib/CodeGen/CodeGenFunction.cpp lib/Parse/ParseDecl.cpp lib/Sema/SemaDecl.cpp test/CodeGen/vla.c
Eli Friedman
eli.friedman at gmail.com
Sun Jan 8 00:35:47 PST 2012
On Sun, Jan 8, 2012 at 12:12 AM, Abramo Bagnara
<abramo.bagnara at gmail.com> wrote:
> $ cat p.cc
> long f();
> long g();
>
> void m() {
> __decltype((int (*)[f()])g()) x;
> }
>
> $ g++ -O2 -S p.cc -o -
> .file "p.cc"
> .text
> .p2align 4,,15
> .globl _Z1mv
> .type _Z1mv, @function
> _Z1mv:
> .LFB0:
> .cfi_startproc
> rep
> ret
> .cfi_endproc
> .LFE0:
> .size _Z1mv, .-_Z1mv
> .ident "GCC: (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1"
> .section .note.GNU-stack,"", at progbits
That's... interesting... what happens if you try to return sizeof(*x)?
-Eli
More information about the cfe-commits
mailing list