[llvm-bugs] [Bug 33827] New: _Generic associated list is misformatted

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 17 15:46:08 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33827

            Bug ID: 33827
           Summary: _Generic associated list is misformatted
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: compnerd at compnerd.org
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

```
#define __SSIZE_TYPE__                                                        
\
  __typeof__(_Generic((__SIZE_TYPE__)0,                                       
\
                      unsigned long long int: (long long int)0,               
\
                      unsigned long int: (long int)0,                         
\
                      unsigned int: (int)0,                                   
\
                      unsigned short: (short)0,                               
\
                      unsigned char: (signed char)0))
```

is formatted as
```
#define __SSIZE_TYPE__                                                        
\
  __typeof__(_Generic((__SIZE_TYPE__)0, unsigned long long int                
\
                      : (long long int)0, unsigned long int                   
\
                      : (long int)0, unsigned int                             
\
                      : (int)0, unsigned short                                
\
                      : (short)0, unsigned char                               
\
                      : (signed char)0))
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170717/766c9810/attachment-0001.html>


More information about the llvm-bugs mailing list